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();字符串值( ) ;
}