jdk1.5.0_01 + eclipse3.0.1 problem using enum?
the environment I'm using is jdk1.50._01 + eclipse3.0.1.
When I try to type the class in eclipse, the keyword "enum" high-light and show error messages below:
- Syntax error, insert ";" to complete FieldDeclaration
- enum cannot be resolved( or is not a valid type) for the field Test.Action
- Syntax error on token ",", delete this token.
public class Test
{
enum Action {refresh, reTurn, forward, success}
public static void main(String args[ ])
{
System.out.println(Action.refresh);
}
}
I can compile the class successful if i straight compile at JDK.
But why the eclipse can't make it(can't compile automatically)?
Thanks.

