I am debugging a Hashtable in Eclipse and have discovered something strange. My Hashtable variable name is "my_hashTable" and the Eclipse debugger, if I click on it, it shows that its values are three: {first = 0, third = 2, second = 1}, which is true, as expected, and the counter equal to 3, which is also correct.
However, if I clicked the "table" variable inside the my_hashTable variable, it shows that there are only two nonzero values, [4] = 2 and [5] = 0. Its full values are below:
[null, null, null, null, third = 2, first = 0, null]
Why is this happening? Where is the "second = 1" pair? This is the first time I've come across this odd observation in Eclipse.
Any idea what is going on? Thanks.
java hashtable debugging eclipse
ling
source share