1.1 --- a/src/share/classes/com/sun/tools/javac/code/Types.java Mon Mar 18 08:46:09 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Types.java Mon Mar 18 14:40:32 2013 -0700 1.3 @@ -2091,7 +2091,7 @@ 1.4 @Override 1.5 public Type visitAnnotatedType(AnnotatedType t, Boolean recurse) { 1.6 Type erased = erasure(t.underlyingType, recurse); 1.7 - if (erased.getKind() == TypeKind.ANNOTATED) { 1.8 + if (erased.isAnnotated()) { 1.9 // This can only happen when the underlying type is a 1.10 // type variable and the upper bound of it is annotated. 1.11 // The annotation on the type variable overrides the one