Bug 21905 - Class file editor should indicate that .class file is missing debug attributes
Summary: Class file editor should indicate that .class file is missing debug attributes
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-25 10:41 EDT by Peter Burka CLA
Modified: 2002-10-02 09:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Burka CLA 2002-07-25 10:41:19 EDT
I just spent some time trying to figure out why I couldn't see source for 
a .class file.

Initially, no source JAR was associated with the file.

I fixed this, but now the message said 'The source attachment does not contain 
the source for ...'.

So I looked at the file and realized that it had some extra directories, so I 
specified a Root Path for the source attachment.

Still nothing. I tried playing with the Root Path a bit to make sure it was 
right.

Eventually I disassembled the file and discovered that it doesn't have any 
debug attributes. The message in the editor could have been more helpful -- 
instead of telling me that the source doesn't exist, it would be good to say 
something like: 'The file ....class does not have a SOURCE_FILE attribute. You 
cannot view its source.'
Comment 1 Kai-Uwe Maetzel CLA 2002-09-04 04:26:14 EDT
What's the correct way to retrieve this information?
Comment 2 Philipe Mulet CLA 2002-10-02 09:51:46 EDT
Actually, we do recover from a missing source attribute. We will search for it 
in the source archive. So the current message is now accurate.