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 build 200409151800 JDK 1.5 RC When I invoke FIX IMPORTS and my code contains: switch (someEnum) { case value1: case value2: ..etc } then it complains it cannot resolve value1, value2. The key here is that enum values must be unqualified inside a switch statement and this is likely giving FIX IMPORTS a hard time. The code compiles fine even though FIX IMPORTS claims otherwise.
each enum constant in the switch is represented by MultipartId and getElement() called on it returns UnresolvedClass
Fixed in trunk. Checking in MDRParser.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v <-- MDRParser.java new revision: 1.55; previous revision: 1.54 done
Reorganization of java component