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: | Unexpected Exception thrown when using enum in a wrong place | ||
---|---|---|---|
Product: | java | Reporter: | pcdinh <pcdinh> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Netbeans error log |
Description
pcdinh
2005-12-08 19:20:38 UTC
Created attachment 27678 [details]
Netbeans error log
It should be a warning: modifier enum not allowed here instead of a exception Tomasi, can you take a look at it? Hi, I tried to reproduce this bug in Netbeans 5.5 and it is still there. java.lang.RuntimeException: Unexpected type of ASTree: 272 at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getElementProxy(MetadataElement.java:688) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.createElement(MetadataElement.java:554) at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initOrCreate(MetadataElement.java:1312) at org.netbeans.modules.javacore.jmiimpl.javamodel.ParameterImpl.initChildren(ParameterImpl.java:347) at org.netbeans.modules.javacore.jmiimpl.javamodel.ParameterImpl.getTypeName(ParameterImpl.java:154) at org.netbeans.jmi.javamodel.Parameter$Impl.getTypeName(Unknown Source) at org.netbeans.modules.java.navigation.jmi.JUtils.getParameterType(JUtils.java:406) at org.netbeans.modules.java.navigation.jmi.JUtils.extractParameterName(JUtils.java:390) at org.netbeans.modules.java.navigation.jmi.JUtils.extractMethodName(JUtils.java:305) at org.netbeans.modules.java.navigation.jmi.JUtils.extractName(JUtils.java:247) at org.netbeans.modules.java.navigation.ClassMemberModel.buildWString(ClassMemberModel.java:397) at org.netbeans.modules.java.navigation.ClassMemberModel.buildMembersForPainting(ClassMemberModel.java:358) at org.netbeans.modules.java.navigation.ClassMemberModel.loadContents(ClassMemberModel.java:331) at org.netbeans.modules.java.navigation.spi.ListModelSupport$Loader.run(ListModelSupport.java:960) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926) This exception has been thrown on and on when the code line private void drawShapes(enum shape) { } was not fixed. Is this going to be fixed in 5.5? If not please change milestone to proper value. Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more. Reorganization of java component |