• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1178
  • Last Modified:

Debugging HashMap java class in Eclipse

Hi,
I wrote a small java program just to debug the HashMap class file using debug points in Eclipse.
Although on debuggin it did hang on the break point inside the put method in HashMap class, but i was unable to view the values of any variable either by moving my cursor on it or in variables view of Eclipse.

I want to understand the working of HashMap class for my knowledge from realy source code. As the code seems to be complex i want to debug it to understand step by step.
Please suggest some way to properly add debug points.

Also suggest some good way to learn about internal Working of HashMap class.

Thanks
0
Rohit Bajaj
Asked:
Rohit Bajaj
1 Solution
 
awking00Commented:
Can you post the code of your small Java program, showing where you placed the breakpoint(s) and what it is you want to understand? Generally speaking, using the debug capability in Eclipse to understand program flow involves not just the breakpoints, but where to step in, step over, etc.
0
 
girionisCommented:
You should be able to see the hash map values when you click on them. Can you post a screen shot of what you're doing?
0
 
Jack FrostCommented:
To a great extent the inner workings of the standard classes is JDK dependent.   So really the ultimate word is the source code itself.  For instance here is a link to HashMap.java for OpenJDK 8:

http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/util/HashMap.java
0
 
Rohit BajajAuthor Commented:
Hi,
Thanks for help.. I will update this shortly
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now