Community
Participate
Working Groups
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.'
What's the correct way to retrieve this information?
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.