OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Only one instance of a Modifier type per Element...



Folks,

Perhaps a strange title, but this is to tie up a discussion we had during the Java call today.

I confirm that the Java Language Spec does limit the occurrance of a given annotation on
an element such as a Class declaration or a Method declaration.

Annotations are a form of Modifier and the statement about modifiers associated with elements
say things like this:

"A compile-time error occurs if the same modifier appears more than once in a class declaration."

Language checkers such as the one built into Eclipse flag an error if you try to annotate a class
declaration with more than one instance of @Confidentiality, for example.


Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]