Current Status: Solved Situation actuelle: Résolu

Defect: Défaut:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) Lorsque plus d'un type de fichiers d'annotation sont compilées dans javac (l'un des moyens comme *. java ou @ srclist ou FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. il émet un message d'erreur et qu'il ne peut pas trouver symbole pour statiquement Enums importés.

However statically importing one level up and de-referencing works. Toutefois statiquement un niveau d'importation et de références.

Create two classes in the same directory as shown below to check the defect. Créer deux classes dans le même répertoire comme indiqué ci-dessous pour vérifier le défaut.

Just having any one of these files in the compilation list works fine. Le simple fait de l'une quelconque de ces fichiers dans la compilation liste fonctionne très bien. However more than one causes javac to croak! Toutefois plus de l'un entraîne à javac croak!

//// Simple.java / / / / Simple.java
import java.lang.annotation.Target; java.lang.annotation.Target importation;
import static java.lang.annotation.ElementType.*; importation statique java.lang.annotation.ElementType .*;

@Target (METHOD) @ Cible (méthode)
public @interface Simple { public @ interface simple (
String value(); String valeur ();
} )

//// Simple2.java / / / / Simple2.java
import java.lang.annotation.Target; java.lang.annotation.Target importation;
import static java.lang.annotation.ElementType.*; importation statique java.lang.annotation.ElementType .*;

@Target (TYPE) @ Cible (type)
public @interface Simple2 { public @ interface Simple2 (
String value(); String valeur ();
} )