[jsr-308-eg] Fw: Syntax for type annotations on fully-qualified types

Michael Ernst mernst at cs.washington.edu
Mon Nov 5 10:46:55 PST 2012


It seems that we now have unanimity in preference for the
  package1.package2. @Annotation SimpleName
syntax over the
  @Annotation package1.package2.SimpleName

Initially, Werner wanted that, Alex didn't want it, and no one else
including Srikanth and me had a strong opinion.  But with Srikanth now
weighing in for the "Annotations on Simple Names" proposal and Alex
switching his vote, I have made this change.  I realize that it will make
the implementation much simpler, but it ended up being a very simple change
to the specification:
http://code.google.com/p/jsr308-langtools/source/detail?r=98096a9ae25190dc101e553e06f6be406565b246

The only thing I am unsure about is the grammar changes.  I'm slightly
hobbled there because I don't have access to the latest Java SE 8 grammar,
which treats identifiers slightly differently than the public Java SE 7
grammar does.

Thanks for re-raising this, Srikanth.

		    -Mike


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