JLS Creator production does not use 'Type'

Srikanth S Adayapalam srikanth_sankaran at in.ibm.com
Tue Apr 23 22:18:22 PDT 2013


> From: Alex Buckley <alex.buckley at oracle.com>
> Subject: Re: JLS Creator production does not use 'Type'
>
> Mike, please respond to the mail below. The Creator production is not
> the 308 spec from 4/1 and so annotations are not allowed after a 'new'
> keyword, period. Accordingly, the current discussion on
> jsr308-discuss at googlegroups.com is _wrong_ to assume the following is
legal:
>
> Object o = new @A String[1];
> Object o = new String @A[1];

Hi Alex,

This passage above makes for confusing reading for me. Could you please
clarify: Are you saying the spec as it stands does not allow these and
so asking Mike to fix the spec, or are you saying that the code snippet
above is illegal ?

TIA,
Srikanth



More information about the type-annotations-spec-experts mailing list