Current Status: Solved當前狀態:解決

Defect:缺陷:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java)當一個以上的註釋類型的文件彙編在javac (任何方式一樣, *. Java或@ srclist或filename1.java filename2.java )
then it emits and error message that it cannot find symbol for statically imported Enums.然後它會發出和錯誤訊息無法找到的象徵,靜態進口enums 。

However statically importing one level up and de-referencing works.不過,靜態導入一個層次和德參照工程。

Create two classes in the same directory as shown below to check the defect.創建兩個班在同一目錄如下所示檢查的缺陷。

Just having any one of these files in the compilation list works fine.剛才有任何一個這些文件在編制工程清單的罰款。 However more than one causes javac to croak!然而一個以上的原因, javac ,以克勞克!

//// Simple.java / / / /的Simple.java
import java.lang.annotation.Target;進口java.lang.annotation.target ;
import static java.lang.annotation.ElementType.*;進口靜態java.lang.annotation.elementtype .* ;

@Target (METHOD) @目標(法)
public @interface Simple {公眾@界面簡單(
String value();字符串值( ) ;
}

//// Simple2.java / / / / simple2.java
import java.lang.annotation.Target;進口java.lang.annotation.target ;
import static java.lang.annotation.ElementType.*;進口靜態java.lang.annotation.elementtype .* ;

@Target (TYPE) @目標(類型)
public @interface Simple2 {公眾@界面simple2 (
String value();字符串值( ) ;
}