Bug 7637

Summary: Attached source not shown for classes in JAR
Product: [Eclipse Project] JDT Reporter: Michael Fraenkel <fraenkel>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Michael Fraenkel CLA 2002-01-15 14:16:56 EST
I am using the 20020109 Integration Build.
I have attached (external JAR) the AXIS jars, axis.jar, clutil.jar, log4j-
core.jar and wsdl4j.jar.  I attached a built src.jar which was a zipped up src 
tree.  When I double click on a .class file, org.apache.axis.*, a blank page 
appears but the Outline looks correct.  I am seeing no errors in the .log file.

I have other external JARs/ZIPs that work, but this one doesn't.
Comment 1 Michael Fraenkel CLA 2002-01-15 14:23:59 EST
There seems to be a dependency on certain debugging info to make the Source 
Attachment stuff works.  If you compile with -g:none, Source Attachment 
doesn't work.  Sounds like you are relying on -g:source info to be present.
Seems like you can do better with the information you have just on the fully 
qualified class name.
Comment 2 Philipe Mulet CLA 2002-01-16 07:28:29 EST
The trick is that the source name as encoded in the classfile is the only 
legite information to present to a user (the one the debugger will present).

Secondary types cannot be inferred the name of their compilation unit.

We could introduce a smart heuristic in case there is no source info in the 
classfile, but will consider it only post 2.0.
Comment 3 Jerome Lanneluc CLA 2002-11-21 11:45:12 EST
Reopening
Comment 4 Jerome Lanneluc CLA 2002-11-21 11:46:23 EST

*** This bug has been marked as a duplicate of 21475 ***