
1 Sep
2009
1 Sep
'09
6:16 p.m.
Hi I found a trivial bug.
MessageConveyor #68 String resouceBundleName = AnnotationExtractor.getResourceBundleName(key .getClass());
Enum#getClass() is specific as follows. ---- public enum MSG{ A, B{ // override method } } public static void main(String[] args){ System.out.println(MSG.A.getClass()); // -> $MSG System.out.println(MSG.B.getClass()); // -> $MSG$1 System.out.println(MSG.B.getDeclaringClass()); // $MSG } ---- If we need to get enum class form instance, we have to call Enum#getDeclaringClass(). Takeshi Kondo