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.
When working on different svn branches the links in the output window points to the correct file, but the wrong branch/location.
The same thing also happens when using the search field and choosing "go to type"...
Works for me in dev (NB 7.1) build. The output window (JavaAntLogger) uses the project classpath. When you execute project (test project) the project classpath is used to resolve the stack trace elements. Only in case that the class is not found on the project classpath the fallback (all classes IDE knows about) is used. The Go To Type shows both types when two version of same project is opened, in the Location text field is the absolute path to file in which the class is declared.
I use maven and NetBeans 7.0.1.
What I've described in previous comment holds for Ant projects. Please fill the maven specific issues on projects/maven.
Created attachment 113327 [details] Counterexample
The output window processor for Maven projects also takes into consideration which project the build was run on, and only searches in that project's classpath, regardless of what projects are open. If you unzip the attached parent project and open its two modules, you can try running (or testing) either of them and following the hyperlinks; the appropriate source file is always opened, though the FQN is the same.
Created attachment 113354 [details] Counter counterexample Do the following (I'm not sure if all this is necessary, but it was what I did): 1:unzip and add to svn 2:make a branch in svn - f.ex postfix with _BRANCH 3:open the original in NetBeans and build it. 4:expand the modules folder and open the app sub module - run it. Click on the line in the output window displaying the Exception. The correct file opens. 5:close the two projects - the file with the error remains open. 6:fetch the _BRANCH from svn, open it, build, open app module and run. 7: click on the line in the output window displaying the Exception. The focus goes to the file already opened (which belongs to the other branch). Hope this helps in correcting the bug :-)
Be sure to close all projects from the previous branch, and then open the POM project from the new branch, not just a single module. Otherwise the IDE cannot be sure which source project should correspond to util-1.0-SNAPSHOT.jar. *** This bug has been marked as a duplicate of bug 203222 ***