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 (*. 자바 또는 @ 같은 방법 중 하나를 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.;
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.;
import static java.lang.annotation.ElementType.*; 수입 정적 java.lang.annotation.elementtype .*;

@Target (TYPE) @ 대상 (유형)
public @interface Simple2 { 공공 @ 인터페이스를 simple2 (
String value(); 문자열 값 ();
} )