Gilberto Vento created NETBEANS-2765:
----------------------------------------
Summary: Netbeans Output Windows does not navigate to Transitive
dependencies.
Key: NETBEANS-2765
URL: https://issues.apache.org/jira/browse/NETBEANS-2765
Project: NetBeans
Issue Type: Bug
Components: java - Navigation, platform - Output Window
Affects Versions: 11.0, 10.0
Reporter: Gilberto Vento
The output windows is not able to navigate to a link if the target destination
is in a class that belongs to a project that is not declared directly in the
pom of the project that was run.
The problems is related to maven projects that use the new java modules feature.
I was not able to reproduce this bug when working with java 8 or java 9+
without modules.
To reproduce this error
* create to maven projects with java 9+ (i used java 12),
* create module-info.java for each
* put second project as dependency of the first
* add some library as dependency to the second project (e.g. commons-io)
* create an static method that use the library incorrectlly so it can throw an
exception (e.g.) IOUtils.buffer((InputStream)null);
* create main class in the first project that calls the static method in the
second project.
* build the 2 projects an run
In the ouput windows when you hit the first link of the stack trace (e, g.) at
org.apache.commons.io.IOUtils.buffer(IOUtils.java:724), the ide won navigate to
the given line, won even show the IOUtils source.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists