<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><pre><div class="line" id="LC68"></div><div class="line" id="LC69">Hi
I found a trivial bug.</div><div class="line" id="LC69"><br></div><div class="line" id="LC69">>> 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().
<br></div><div class="line" id="LC69">Takeshi Kondo</div><div class="line" id="LC69"> </div></pre></div></body></html>