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.

Bug 49317 - Fix imports reports bogus errors on enums
Summary: Fix imports reports bogus errors on enums
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 22:03 UTC by _ gtzabari
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2004-09-20 22:03:59 UTC
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.
Comment 1 Daniel Prusa 2004-09-30 10:23:50 UTC
each enum constant in the switch is represented by MultipartId and
getElement() called on it returns UnresolvedClass
Comment 2 Tomas Hurka 2004-10-01 15:56:57 UTC
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
Comment 3 Quality Engineering 2007-09-20 11:51:07 UTC
Reorganization of java component