Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Enum inside annotation

807603Oct 17 2007 — edited Oct 20 2007
Why I can't put an Enum field in annotation:
public @interface SelectFrom
{
    String pk();    
    Enum xx();   //  invalid type for annotation member
}
compiler complains about invalid type for annotation member
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2007
Added on Oct 17 2007
11 comments
1,402 views