Community
Participate
Working Groups
Build ID: M20060921-0945 Steps To Reproduce: 1. Create a Java project 2. Use the jregex 1.2_01 http://jregex.sourceforge.net 3. Specify its source code (contained in a .zip in the project) 4. Insert some code that uses a class in that library. 5. I choose F3 to navigate to the source of i.e. 6. Eclipse complains it cannot find the source 7. Compile myself the project and place *.class inside a jar 8. Replace the new jar (with debug info) with the old one 8. Now Eclipse can find the class More information: I expect both jars to work the same way.
Created attachment 57522 [details] Source code of the jar file
Created attachment 57523 [details] Jar file that cannot find sources
Created attachment 57524 [details] Jar file compiled by Eclipse. It can find sources Compiled in a separate project. With debug info.
Created attachment 72208 [details] Proposed fix This fix corrects the source file name in case it contains the package name. Do you know what compiler was used to compile the .class files inside the first jar file ?
Philippe, candidate for 3.3.1 ?
No, I don't know the compiler. You could ask the jregex folks.
+1 for 3.3.1. Being resilient is always a good idea.
Released for 3.4M1. No regression test added as this would require to build an invalid source attribute. Verifier, please use the steps in comment 0 to verify this fix.
Released for 3.3.1. No regression test added as this would require to build an invalid source attribute. Verifier, please use the steps in comment 0 to verify this fix.
Verified for 3.4M1 using build I20070806-1800.
Reopen for 3.3.1 verification
.
Verified for 3.3.1 using build M20070831-2000