Current Status: Solved Estado actual: Solucionado

Defect: Defecto:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) Cuando más de un tipo de anotación archivos se compilan en javac (ninguna de las maneras como *. java o @ srclist o FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. entonces se emite y mensaje de error que no puede encontrar el símbolo para estáticamente Enums importados.

However statically importing one level up and de-referencing works. Sin embargo estadísticamente un nivel de importación y de hacer referencias a las obras.

Create two classes in the same directory as shown below to check the defect. Crear dos clases en el mismo directorio que se muestra a continuación, para comprobar la existencia del defecto.

Just having any one of these files in the compilation list works fine. Sólo teniendo en cualquiera de estos archivos en la compilación lista funciona bien. However more than one causes javac to croak! Sin embargo más de una causa javac a croak!

//// Simple.java / / / / Simple.java
import java.lang.annotation.Target; importación java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*; importación estática java.lang.annotation.ElementType .*;

@Target (METHOD) Meta @ (FORMA)
public @interface Simple { @ pública interfaz simple (
String value(); Cadena de valor ();
} )

//// Simple2.java / / / / Simple2.java
import java.lang.annotation.Target; importación java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*; importación estática java.lang.annotation.ElementType .*;

@Target (TYPE) Meta @ (TIPO)
public @interface Simple2 { @ interfaz pública Simple2 (
String value(); Cadena de valor ();
} )