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.

Bug 243672 - Link in stacktrace leads to file in other project
Summary: Link in stacktrace leads to file in other project
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-08 18:51 UTC by host
Modified: 2014-07-08 02:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description host 2014-04-08 18:51:11 UTC
I have two web app projects which basically contain the same content, i.e. one project "TRUNK" is based on the SVN trunk and one project "BRANCH" is based on a SVN branch.

Now I run the web app of "TRUNK" and an exception occurs during execution. So in the stacktrace I click on a class whose source exists both in "TRUNK" and "BRANCH".

Result: The class which is opened in the editor is from "BRANCH" (as can be verified by chosing "Select in Projects" from the editor drop-down menu) and NOT from "TRUNK" as it should.
Comment 1 David Konecny 2014-07-08 02:20:59 UTC
The exception is in the server log right? The server log does not know (I think) which project caused the exception and hence just searches all opened projects for a first one which contains the class from exception. To avoid that open the project just once. You can use Project Groups (in File menu) to switch between two sets of projects.