Hi,

The current nb-javac fails with an AssertionError when compiling an
expression like "a.new B(){}".

This is pretty annoying since it'll happen every time a file with this
construct is saved, and afaik there's no alternate syntax that can be used
to avoid the problem.

As is, nb-javac can't even compile some of its own files because of this.
The exception can also be seen when running the AttrTest.testCheckMethodNPE
unit test, although it doesn't cause a test failure since
JavacTaskImpl.handleExceptions catches it.

I tracked down the cause (a bad merge of existing nb-javac changes with JDK
10 changes) and came up with a 2-line patch:
https://issues.apache.org/jira/browse/NETBEANS-906

Could someone responsible for nb-javac please take a look?

Thanks,
Jeffrey

Reply via email to