This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If you run a program from Maven that produces stack traces, the logger will try to determine for every stack trace line whether source code is currently available in GlobalPathRegistry. This is bad for two reasons: 1. If there are lots of stack traces, output will be quite slow, much slower than running the same command from a shell. Better to pay the price for locating the source FileObject if and when the user actually clicks on it; do the minimum work when printing output. 2. Classes which _could_ have sources but do not have them at the time the stack trace is printed do not get hyperlinked. This is annoying because it is often the libraries you were not previously thinking about which are now implicated in an exception! Rerunning the program or trying to reproduce the exception is not always possible. You would expect that if a class from a closed project is hyperlinked but inaccessible, opening the project would let you try again. For a binary dependency, you would expect SourceJavadocAttacher to be tried. OutputUtils.matchStackTraceLine seems to be at fault. I think the same problem applies to JavaAntLogger.messageLogged. JavaHudsonLogger is already fixed (1c70530ada72). See bug #205359 for a suggested consolidated API, but fixing this issue at least for Maven should be easy: just move the body of 'if (match.matches())' into StacktraceOutputListener.outputLineAction, adjusting variables vs. fields accordingly; and add a call to SourceJavadocAttacher.attachSources if necessary (when the *.class can be located but *.java cannot). Can offer patch if you like.
sounds good.
http://hg.netbeans.org/core-main/rev/59d7e2228f53
Almost works except for a fencepost error. at pkg.SomeTest.whatever(SomeTest.java:56) takes you to line 57.
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/59d7e2228f53 User: Milos Kleint <mkleint@netbeans.org> Log: #217591 mark all stacktrace candidates as links and only fail when user clicks the link
http://hg.netbeans.org/core-main/rev/a90e716d7ec3
Integrated into 'main-golden', will be available in build *201209130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a90e716d7ec3 User: Milos Kleint <mkleint@netbeans.org> Log: #217591 one line off