Description of problem: If you run a java program within Eclipse that throws an uncaught exception, you see a nice stack trace in the Console window. The source:lineno links in the stack trace are clickable. When I click a link to go to a line of source in the program I'm running (my project), I expect it to take me there, but I get an error instead. For instance, my stack trace includes a line referring to Driver.java:41. When I click on that I get an "Information" dialog box, saying "Source not found for Driver". It should actually take me to org/spindazzle/sdc/driver/Driver.java, line 41, which is part of my project. Is this because we're not printing additional path information in the exceptions? Version-Release number of selected component (if applicable): eclipse-platform-3.1.2-1jpp_7fc How reproducible: Always Steps to Reproduce: 1.Run a java program that prints an exception. 2.Try to follow the source links in the exception trace. 3. Actual results: Expected results: Additional info:
I think this is due to the way the program is being run. Eclipse uses "source-attached jars" for the source of certain bits of programs. Perhaps this is happening here? CCing Ben as he knows about this.
I think Anthony is talking about stack traces in the eclipse console, not source attached jars. This seems to be a regression, although last time it seems to have fixed itself.
(In reply to comment #2) > I think Anthony is talking about stack traces in the eclipse console, not source > attached jars. Yes, that's what I'm talking about. > This seems to be a regression, although last time it seems to > have fixed itself. It's still broken for me.
This test file works for me: public class Test { public static void main(String[] args) { new Exception().printStackTrace(); } } I'm using rawhide with: eclipse-platform-3.1.2-1jpp_7fc gcc-java-4.1.0-1 Can you post an example class that has a problem?
Created attachment 125707 [details] Reproducer
It looks like source references in the default package are OK, but try something in a sub-package. See attached reproducer.
This seems to be a classpath bug. Tracking upstream.
*** Bug 188264 has been marked as a duplicate of this bug. ***
PR27081 fix added to gcc-4.1.0-7 in rawhide.