[Java Spec Report] Annotations and initializers
"Roly Perera" <[email protected]> Fri, 7 May 2004 10:28:54 +0100
| Newsgroups | gmane.comp.java.spec-report |
|---|---|
| Organization | Ergnosis Ltd |
| Message-ID | <[email protected]> |
Maybe this is already covered, but in the absence of an official 1.5
grammar or integrated spec it is probably sensible for the JSR-175 to
clarify that the following is illegal:
class X {
@Blah static {
}
}
This is a declaration context where modifiers are allowed, but
annotations are not. I've found at least one compiler which accepts it,
although javac does not.
- Roly
Roly Perera
[email protected]
+------------------------------------------------------------------+
+ Ergnosis Ltd www.ergnosis.com +
+ Third Floor +
+ 14 King Square CTRL + ALT + PARADIGM SHIFT +
+ Bristol BS2 8JJ, U.K. www.ergnosis.com/employment +
+ +44 117 924 8915 (telephone) Java Spec Report: +
+ +44 870 421 1389 (fax) www.ergnosis.com/java-spec-report +
+------------------------------------------------------------------+
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.590 / Virus Database: 373 - Release Date: 16/02/2004
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this mailing list, send an email to:
[email protected]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/java-spec-report/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/