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.
Summary: | Tons of exceptions as soon as I use "enum" keyword in an editor | ||
---|---|---|---|
Product: | java | Reporter: | lg <lg-nb> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
lg
2004-11-30 13:07:00 UTC
which build of netbeans do you use? you can look at Help|About|Details, thank you Since I cannot start the IDE now, here is some build_info from the installation directory: etBeans dev build ------------------ Number: 200409220845 Date: ${TODAY} Branding: Branch: trunk Tag: It is 4.0-beta2 and I use the "automatic updates" feature. If you released a bad fix yesterday, it could also be the point. At least, tell me what to remove from .netbeans/ so that I am able to continue on my project without any lost of my settings (editor, ...). I am not able to reproduce it. Please provide steps how to reproduce it. You can also try to upgrade to NB 4.0 RC1. You can delete .netbeans/var/cache/mdrstorage to recover from broken MDR storage. Reproduce? IMHO there is something cached and it causes these problems. The cache was demaged by something I cannot specify, it is up to you to tell what's wrong. As soon as I start the IDE now, I get: java.lang.NullPointerException at org.netbeans.modules.javacore.parser.InfoUtil.getElementNames(InfoUtil.java:75) at org.netbeans.modules.javacore.parser.ClassInfoMeasure.getDistance(ClassInfoMeasure.java:61) at org.netbeans.modules.javacore.parser.ArrayMapper.getDistance(ArrayMapper.java:195) at org.netbeans.modules.javacore.parser.ArrayMapper.mapArray(ArrayMapper.java:120) at org.netbeans.modules.javacore.parser.ArrayMapper.getMap(ArrayMapper.java:48) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:410) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.matchPersistent(ResourceImpl.java:188) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:278) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateMetadata(ResourceImpl.java:581) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:574) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:479) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:465) at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initResource(ResourceImpl.java:366) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:131) at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:144) at org.netbeans.modules.java.bridge.TopClassesCollection.getFeatures(TopClassesCollection.java:52) at org.netbeans.modules.java.bridge.ObjectsCollection.getElements(ObjectsCollection.java:101) at org.netbeans.modules.java.bridge.ClassesCollection.getClasses(ClassesCollection.java:72) at org.netbeans.modules.java.bridge.SourceElementImpl.getClasses(SourceElementImpl.java:144) at org.netbeans.modules.java.bridge.SrcElementImpl.getClasses(SrcElementImpl.java:170) at org.openide.src.SourceElement.getClasses(SourceElement.java:221) at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.getSelectedMainClass(RunInternallyAction.java:183) at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.enable(RunInternallyAction.java:86) at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:121) at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:625) at org.openide.awt.Actions.connect(Actions.java:115) at org.openide.awt.Actions.connect(Actions.java:102) at org.openide.awt.Actions$MenuItem.<init>(Actions.java:933) at org.netbeans.modules.openide.awt.DefaultAWTBridge.createMenuPresenter(DefaultAWTBridge.java:33) at org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAction.java:41) at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:458) at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:710) at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68) at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:601) at org.openide.util.Task.run(Task.java:136) [catch] at org.openide.awt.AWTTask.run(AWTTask.java:29) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153) at java.awt.Dialog$1.run(Dialog.java:515) at java.awt.Dialog.show(Dialog.java:536) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at org.netbeans.modules.javacore.ProgressPanel.setVisible(ProgressPanel.java:106) at org.netbeans.modules.javacore.ProgressPanel.openProgressDialog(ProgressPanel.java:239) at org.netbeans.modules.javacore.JMManager$5.run(JMManager.java:1118) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) That's all I can tell you. I also tried to follow your instructions - I mean - the MDR cache was removed - NOW IT WORKS! OK, all I did was this: Writing a DNS client in NIO, I tried to define enum-s for several constants. I typed: enum CLASS { IN, CS, CH, HS }; a la C/C++. The compiler does not like it, so I changed it to: enum CLASS { IN=1, CS=2, CH=3, HS=4 }; the compiler was not happy, so I started to read Java documentation. Then I removed the "enum" completely, and used the older style: public final static int CLASS_IN = 1; : : Compiler still complained...and the end of the story is described by this bug report. These problems seem to be caused by bugs we fixed some time ago. The problem is we have not increased the specification version of our modules so the fixes were not available on the autoupdate center, so you were still using beta2 code. Reorganization of java component |