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.
[dev-200409071800; JDK 1.5.0 rc b63] I started the IDE with a clean userdir and created a new project with default Main class. I waited until the classpath scanning finished and then started editing the Main.java file in editor. Almost immediately a "Class not found in index: Main. Recovering..." exception was thrown, followed by an IOE. Pretty frustrating experience. System info and exception stack traces attached.
Created attachment 17463 [details] System info and exception stack trace
I'll try to find a reproducible test case.
Reliably reproducible when I type some unparseable garbage anywhere above the class' 'package' declaration. As soon as the edited file is parsed, the exception is thrown. Not reproducible with build 20040905, so this must be a regression.
*** Issue 48646 has been marked as a duplicate of this issue. ***
Flaskin changed level of debug messages. He will look at it.
It is my fault. In notify() method I used ErrorManager.WARNING severity, which I thought is not reported to the user. Javadoc says: "Something went wrong in the software, but it is continuing and the user need not be bothered."
> "Something went wrong in the software, but it is continuing and the user need not be bothered." Openide guys, you should change javadoc, shouldn't you?
Javadoc is correct, but seems to me that it could clarify things more. (Of course I should have try it first.)
Fixed in QBE200409071800 and trunk. Checking in src/org/netbeans/modules/javacore/ExclusiveMutex.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v <-- ExclusiveMutex.java new revision: 1.26.2.1; previous revision: 1.26 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/LightAttrList.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/LightAttrList.java,v <-- LightAttrList.java new revision: 1.9.2.1; previous revision: 1.9 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v <-- MetadataElement.java new revision: 1.27.2.1; previous revision: 1.27 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java,v <-- SemiPersistentElement.java new revision: 1.34.2.1; previous revision: 1.34 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/TransientElement.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/TransientElement.java,v <-- TransientElement.java new revision: 1.8.2.1; previous revision: 1.8 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/UnresolvedClassClassImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/UnresolvedClassClassImpl.java,v <-- UnresolvedClassClassImpl.java new revision: 1.6.2.1; previous revision: 1.6 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/javacore/parser/MDRParser.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v <-- MDRParser.java new revision: 1.48.2.1; previous revision: 1.48 done Processing log script arguments...
Verified in q-build #200409100847. I still get the 'Class not found in index' exception stack trace in the console. This should go away for Beta 2.
Reorganization of java component