Bug 76880 - Unable to resolve enum type
Summary: Unable to resolve enum type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 blocker with 1 vote (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 77324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-23 14:10 EDT by Jens Elkner CLA
Modified: 2005-04-18 07:33 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot of error messages I get (135.50 KB, application/msword)
2005-04-18 07:30 EDT, jolliffe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Elkner CLA 2004-10-23 14:10:59 EDT
eclipse-gtk-linux-I20041019:

JDT seems not to be able to handle enum types: E.g.

class Foo {
  public enum DefaultCmds { ADD, DELETE, PASTE, CUT, RENAME, REFRESH }

  public Foo {
     DefaultCmds[] cmds = DefaultCmds.values(); 
  }
}

In contrast to Sun's jdk 1.5.0 JDT produces the following errors:
 
DefaultCmds[] cannot be resolved to a type
DefaultCmds cannot be resolved
Comment 1 Philipe Mulet CLA 2004-10-23 20:16:46 EDT
Enum support is being currently implemented. With HEAD's contents, it compile
this scenario.
Comment 2 Philipe Mulet CLA 2004-10-23 20:17:01 EDT
Fixed
Comment 3 Philipe Mulet CLA 2004-10-31 19:22:42 EST
*** Bug 77324 has been marked as a duplicate of this bug. ***
Comment 4 David Audel CLA 2004-11-04 11:15:11 EST
Verified for 3.1M3 with build I200411040100
Comment 5 James Watson CLA 2004-11-08 20:48:19 EST
I just downloaded and extracted 3.1M3 and I'm still getting the same error.
Comment 6 James Watson CLA 2004-11-08 20:49:46 EST
build 200411050810 still has same problem.
Comment 7 James Watson CLA 2004-11-08 20:52:58 EST
Nix that.  I did a Build all and it's fine.  Sorry.
Comment 8 jolliffe CLA 2005-04-18 07:30:05 EDT
Created attachment 19992 [details]
Screenshot of error messages I get

Sorry - don't know how to copy and paste compile errors - so have pasted
screenshot into workd document
Comment 9 jolliffe CLA 2005-04-18 07:33:46 EDT
Sorry for bugspam (attachement) - set JDK compliance level to 5.0 and working OK
now.