简体   繁体   中英

Want to debug the source code of JDK

I have the problem same as this .

I just tried to figure out how does hashmap internally works. So I want to debug the source code of SDK.

Currently. I think What I am looking for the compiled version with debug information for Java SE 1.7 . ie compile using javac -g .

在此处输入图片说明

I think I am not the only guy who want to do this. So anyone who knew the link or already done this before. (Sorry for I am the lazy man.Forgive me that. ) Please kindly share the work result for me. Well appreciated. Thanks.

You do need to compile those classes with debugging yourself.

Distributing such a package would probably be a violation of Oracles License Agreement.

The post you linked has detailed instructions on how to do that.

The link in my question actually answered my question. But I just want to add missed part it didn't mention. The endorsed jar file should be joined in the installed JRE as an external jar otherwise it doesn't work. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM