The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Nov 08, 2007
Originally posted by Anoop Krishnan: ...
the annotation is not present on the class (enum Numbers)
it's still not present on the class,
should return true, [/B] [ January 03, 2008: Message edited by: Bill Shirley ] [ January 03, 2008: Message edited by: Bill Shirley ]
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Joined: May 03, 2001
Thank you for your updates.
I am aware of the solutions which you suggested but my real problem is much more complex and I just explained it with a simple example
I want to find out why is it not possible to get the Annotation via reflection I am sure that I am doing something wrong otherwise it should work.
Java doc for Annotation Target says ElementType.FIELD can be applied to Enum constants