[JSR308] Hello, and a comment
gafter at google.com
Tue Jan 30 20:10:36 EST 2007
Right: this example places the annotation after the type, which as I
mentioned avoids the ambiguity. But that's not the way it is done in the
draft spec (published a few days ago).
On 1/30/07, Eugene Kuleshov <eu at javatx.org> wrote:
> Neal Gafter wrote:
> >> Hi Neal. I've send a note about ambiguity of the array annotations
> >> this morning. I've suggested suggested to put annotations before
> >> annotated type. You can find it in the mailing list archive at
> >> https://lists.csail.mit.edu/pipermail/jsr308/2007-January/000044.html
> > Well, annotations before the annotated type doesn't work, because in a
> > simple variable declaration it is ambiguous with an annotation on the
> > variable.
> Neal, can you please give an example? I don't see ambiguity in
> something like this:
> @ReadOnly Document @ReadOnly  @ReadOnly doc;
> Here we have annotation on the type, on array elements and on the
> JSR308 mailing list
> JSR308 at lists.csail.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the JSR308