Bug 21905

Summary: Class file editor should indicate that .class file is missing debug attributes
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.