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 in openide/looks. Had gotten some random JMI-type exceptions in a previous session, so shut down IDE, deleted cache dir, restarted, waited for rescan, resumed work. Everything was fine for a while. Then I made some edit in SelectorImplFactory.java which involved the source file being temporarily malformed - an extra "};" that I forgot to delete. I deleted it, but then I started getting many exceptions. Is there no way to request that JMI just throw out its corrupt cache for a given dir and rescan it? Once it gets corrupted, it never recovers gracefully, you always need to clear the cache, so shouldn't the IDE do this for you automatically?
Created attachment 18142 [details] Exceptions of all sorts
Wait, still has errors even after restarting with a clear cache. Will attach problematic file.
Created attachment 18143 [details] Source file that causes continued exceptions (yes I know it is not compilable yet)
Note there is still a syntax error in the file: new Enumerations.convert(en, new ...() {...}); (extra "new") After correcting that, the errors seems to go away.
Fixed NPE from JavaClassImpl.matchName. 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.40; previous revision: 1.39 done
Fixed a bug that caused switch statement to initialize incorrectly if there were empty case/default clauses at the end (java.lang.RuntimeException: Unexpected type of ASTree: 62) Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/SwitchStatementImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SwitchStatementImpl.java,v <-- SwitchStatementImpl.java new revision: 1.5; previous revision: 1.4 done
IOE from JavaUpdater.makeIndex fixed. Checking in src/org/netbeans/modules/javacore/scanning/JavaUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v <-- JavaUpdater.java new revision: 1.16; previous revision: 1.15 done
IOE from SemiPersistentElement.cleanPersist fixed. 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.41; previous revision: 1.40 done
The other inconsistency reports seem to be consequences of the fixed errors and are not fatal.
Jesse, can you verify this issue, please? Thanks.
No way to verify.
No way to verify = closed.
Reorganization of java component