Hi Laszlo,

On 16.03.22 23:13, Laszlo Kishalmi wrote:
First of all, I'd thank you Jaroslav for the generated nb-javac and this summary:

https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac

Second I have an issue: https://bugs.openjdk.java.net/browse/JDK-8262095

This usually comes up when I try to use Find Usages in NetBeans source code. I get partial results and usually an exception:

Caused: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null     at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitApply(Flow.java:1439)     at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1797)
    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)

Which resembles the one in the JDK bug report above.

This issue is supposed to be fixed in JDK 17.0.2, AFAIK nb-javac is 17.0.1. The real question is how can we address such kind of issues.

IMO: we should consider turning the module off if nb-JDK.version >= nb-javac.version.

Check out the thread "nb-javac and timing" where I suggested to move NB releases slightly so that we would be able to ship the latest update release. Since the current schedule would basically require to integrate nb-javac during the rc phase, or ship an outdated update.


I've tried to deactivate the nb-javac plugin to take the advantage of my local 17.0.2 JSK installation, but even after restart the nb-javac plugin is active.

you have to uninstall it, something will turn it on automatically earlier or later.



Am I the only one seeing this compiler bug?

I don't have it enabled so i can't tell, runs fairly stable for me

best regards,

michael


---------------------------------------------------------------------
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



Reply via email to