I am debugging with my code, but the error shows "Source not found." when using line breakpoint. The problem is that I can import java.util.*, but I cannot see the code in it, for example, I want to see the source code of AbstractSet.
I have searched a lot of ways. I am pretty sure any shortcut like ctrl+T+click or anything else didn't work. To avoid duplicated problem, I have tried a lot of ways like How to see the source code for java SDK (java.lang, java.util, ...) classes in Eclipse? However, this way didn't work for me. I have downloaded JDK-13, and it also didn't work. What I need is just to see the code in java.util. Hope anyone helps.
error:
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.remove(Unknown Source) // here is the problem
at ArrayMap$ArrayMapEntrySetIterator.remove(ArrayMap.java:135)
at java.util.AbstractMap.remove(Unknown Source)
at test.main(test.java:22)
@bathudaide Thanks for your reply. For now, I can see the source code by ctrl+click class name. However, I still met error when trying to run my code. source_not_found Please see the image. jdk-687fd7c7986d is what I downloaded from your link. I put it into my previous folder, then it works fine when I ctrl+click class name, but I still met "Unknown Source", which is the same as the error code above.
I have checked this one -> I get "Source not found" when debugging my Java code in Eclipse But it did not work for me.