[JSR308] Hello, and a comment

Neal Gafter 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).

-Neal

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
> variable.
>
>   regards,
>   Eugene
>
>
>
> _______________________________________________
> JSR308 mailing list
> JSR308 at lists.csail.mit.edu
> https://lists.csail.mit.edu/mailman/listinfo/jsr308
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.csail.mit.edu/pipermail/jsr308/attachments/20070130/27d39515/attachment.htm


More information about the JSR308 mailing list