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.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(); قيمة السلسله () ؛
} )