1.1 --- a/src/share/classes/com/sun/tools/javadoc/AnnotatedTypeImpl.java Thu Aug 29 12:11:36 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javadoc/AnnotatedTypeImpl.java Thu Aug 29 19:19:23 2013 -0700 1.3 @@ -40,7 +40,7 @@ 1.4 public class AnnotatedTypeImpl 1.5 extends AbstractTypeImpl implements AnnotatedType { 1.6 1.7 - AnnotatedTypeImpl(DocEnv env, com.sun.tools.javac.code.Type.AnnotatedType type) { 1.8 + AnnotatedTypeImpl(DocEnv env, com.sun.tools.javac.code.Type type) { 1.9 super(env, type); 1.10 } 1.11 1.12 @@ -50,7 +50,7 @@ 1.13 */ 1.14 @Override 1.15 public AnnotationDesc[] annotations() { 1.16 - List<TypeCompound> tas = ((com.sun.tools.javac.code.Type.AnnotatedType)type).typeAnnotations; 1.17 + List<? extends TypeCompound> tas = type.getAnnotationMirrors(); 1.18 if (tas == null || 1.19 tas.isEmpty()) { 1.20 return new AnnotationDesc[0]; 1.21 @@ -65,7 +65,7 @@ 1.22 1.23 @Override 1.24 public com.sun.javadoc.Type underlyingType() { 1.25 - return TypeMaker.getType(env, ((com.sun.tools.javac.code.Type.AnnotatedType)type).underlyingType, true, false); 1.26 + return TypeMaker.getType(env, type.unannotatedType(), true, false); 1.27 } 1.28 1.29 @Override