Current Status: Solved Status atual: resolvido

Defect: Defeito:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java) Quando mais de uma anotação tipo de arquivos são compilados em javac (qualquer das maneiras como *. java ou @ srclist ou FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. então ele e emite mensagem de erro que não pode encontrar símbolo para estaticamente Enums importados.

However statically importing one level up and de-referencing works. No entanto estaticamente importar um nível para cima e referenciação de-obra.

Create two classes in the same directory as shown below to check the defect. Crie duas classes no mesmo diretório como mostrado a seguir para verificar o defeito.

Just having any one of these files in the compilation list works fine. Basta ter qualquer um destes arquivos na compilação lista funciona bem. However more than one causes javac to croak! No entanto mais de um causas javac para croak!

//// Simple.java / / / / Simple.java
import java.lang.annotation.Target; java.lang.annotation.Target importação;
import static java.lang.annotation.ElementType.*; importação estática java.lang.annotation.ElementType .*;

@Target (METHOD) @ Target (método)
public @interface Simple { @ público interface simples (
String value(); String valor ();
} )

//// Simple2.java / / / / Simple2.java
import java.lang.annotation.Target; java.lang.annotation.Target importação;
import static java.lang.annotation.ElementType.*; importação estática java.lang.annotation.ElementType .*;

@Target (TYPE) @ Target (TIPO)
public @interface Simple2 { @ público interface Simple2 (
String value(); String valor ();
} )