Bug fix: annotating a type variable that has an annotated bound

Werner Dietl wdietl at gmail.com
Mon Jan 28 12:47:40 PST 2013


Jon, all,

one of the final changes we had last week was to maintain
AnnotatedType through erasure.
This results in an exception when annotating a type variable that has
an annotated bound: it tries to add an annotation to something that is
already annotated - the erasure of the upper bound.

The fix is easy: the annotation on the type variable overrides an
annotation from the bound.
See:

http://hg.openjdk.java.net/type-annotations/type-annotations/langtools/rev/6ba99e86de7e

Please file a bug and push to TL at your convenience.

cu, WMD.

-- 
http://www.google.com/profiles/wdietl


More information about the type-annotations-dev mailing list