Bug 7637 - Attached source not shown for classes in JAR
Summary: Attached source not shown for classes in JAR
Status: RESOLVED DUPLICATE of bug 21475
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-15 14:16 EST by Michael Fraenkel CLA
Modified: 2002-11-21 11:46 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***