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 241349 - Clicking stack trace in GlassFish Server window may open wrong file
Summary: Clicking stack trace in GlassFish Server window may open wrong file
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 15:25 UTC by t_gergely
Modified: 2015-05-19 08:58 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t_gergely 2014-02-03 15:25:11 UTC
(The same problem as described in bug#159177, but for GlassFish. So different source files.)

When clicking on a blue line in the output window "GlassFish Server 3+", NetBeans may open a wrong file with the same name. Eg. when you use multiple versions of the same library for different projects.

I think, here's the problem:
In LogHyperLinkSupport.java
        @Override
        public void outputLineAction(OutputEvent ev) {
            FileObject sourceFile = GlobalPathRegistry.getDefault().findResource(path); 

The javadoc of findResource states
"In case more than one source root contains the resource, one is chosen arbitrarily."

That's not good. When more than one source root contains the resource, the user should be prompted to choose the right one.