Hello,
I've got a LinkageError when running a NetBeans plugin with a dependency
on nb-javac. The plugin uses Maven, and I've noticed the following entry
in MANIFEST.MF:
Maven-Class-Path: org.netbeans.external:nb-javac-api:RELEASE82
org.netbeans.external:nb-javac-impl:RELEASE82
This obviously results in creating its own ClassLoader
(ModuleCL@...[org.netbeans.modules.java.source.base]) for the compiler
libraries - different from my module's one. :-(
Both class loaders have the same parent
(sun.misc.Launcher$AppClassLoader@same_number).
As different classes loaded by different class loaders are different,
assignment results in a LinkageError. The class is in this case
"javax.lang.model.util.Elements".
Is there any chance to convert Objects from
eleme...@org.netbeans.modules.java.source.base to Elements@my.module?
Kind regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists