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.
041006 custom, JDK 1.5.0. Working on minicomposer example module. Can't seem to work on ScorePanel.java without getting errors over and over - seem to be due to named local class: class DeferredRun implements TaskListener, Runnable { public void taskFinished(Task t2) { SwingUtilities.invokeLater(this); } public void run() { init2(); } } t.addTaskListener(new DeferredRun()); At least, when I did a Fix Imports, it got almost everything right but then said it could not find "DeferredRun". Also it failed to import TaskListener. I manually added the TaskListener import and now the class is compilable. However just scrolling through it is enough to throw errors right and left.
Created attachment 18146 [details] Some exceptions
Afterwards I get an OOME and have to shut down the IDE (which I was about to do anyway).
Created attachment 18147 [details] The class in question
Restarting the IDE with a clear cache doesn't help; just starts throwing errors again as soon as you start up again. Once I rewrote the class to make DeferredRun a nested inner class (i.e. not inside a method), then things seem to be OK again. So it really looks like the parser just chokes on local classes somehow.
Yes, javacore has a problem with named local classes (as you found out in issue 48869). We are working on it but the problem is a bit complex. JMI part is done, but parser part still requires some work. Hopefully we will be able to fix it soon after Tomas gets back to work (he is sick). Btw., you probably attached an incorrect log - this one contains NPEs from BtreeStorage.save. *** This issue has been marked as a duplicate of 48869 ***
Maybe the local-class-related exceptions are further down in the log. Hard to tell - I had so many pages full of exceptions, I did not know which were triggered by what action.
Reorganization of java component