title: why enum could not be resolved in JAVA?
body: <p>I was using J2EE Eclipse Indigo, and I have three class declare like this:</p>
  
  <pre><code>public interface ClassA {
     public static enum TYPE { TYPE1, TYPE2 };
  }
  
  public interface ClassB extends ClassA {
  
  }
  
  public class ClassC implements ClassB {
     System.out.println(TYPE.TYPE1);
  }
  </code></pre>
  
  <p>There was a compilation error on TYPE in ClassC. It complain that "enum cannot be resolved to a type". And also a warning for enum in ClassA, it complain that:</p>
  
  <pre><code>Multiple markers at this line
   - 'enum' should not be used as an identifier, since it is a reserved keyword from source level 1.5 on
   - enum cannot be resolved to a type
   - Syntax error, insert ";" to complete FieldDeclaration
  </code></pre>
  
  <p>May I know what cause the error in this code?</p>