| Summary: | key word enum won't compile | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Cat Phelix <msphelix> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | VERIFIED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | amj87.iitr, Olivier_Thomann |
| Version: | 3.7 | ||
| Target Milestone: | 3.7 M5 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
What are the compiler settings for this project ? Your project is clearly not setup to compile 1.5 code. Closing as INVALID. Reopen if you still get a problem once you set your compiler settings to be 1.5 for this project. Verified for 3.7M5 |
Build Identifier: Version: Helios Service Release 1 Build id: 20100917-0705 I don't know that this is a bug. I went to your Forums page and couldn't figure out how to start a message (I'm a decent programmer but not a computer user whiz). I'm using Java 6 u22. I put this enum declaration in my code: public enum CLASS { cC1, cC2, cC3, cC4, cC5, cC6, cC7, cC8, cC9 }; and get Multiple markers at this line - Syntax error on token ",", delete this token - Syntax error, insert ";" to complete FieldDeclaration - cC1 cannot be resolved to a type - enum cannot be resolved to a type - 'enum' should not be used as an identifier, since it is a reserved keyword from source level 1.5 on I can compile and use the same enum in a BlueJay project. I'm sure something is not set right in eclipse but I'm not good enough to fix it. Please help. Reproducible: Always Steps to Reproduce: 1. Create a java file with an enum declaration 2. Compile it. 3.