[JSR308] Hello, and a comment

Eugene Kuleshov eu at javatx.org
Tue Jan 30 19:19:30 EST 2007


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





More information about the JSR308 mailing list