1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Lower.java Wed Jan 23 20:57:40 2013 +0000 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Lower.java Wed Jan 23 13:27:24 2013 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -2288,7 +2288,7 @@ 1.11 return tree.packageAnnotations.nonEmpty(); 1.12 case NONEMPTY: 1.13 for (Attribute.Compound a : 1.14 - tree.packge.annotations.getAttributes()) { 1.15 + tree.packge.annotations.getDeclarationAttributes()) { 1.16 Attribute.RetentionPolicy p = types.getRetention(a); 1.17 if (p != Attribute.RetentionPolicy.SOURCE) 1.18 return true; 1.19 @@ -2685,6 +2685,13 @@ 1.20 result = tree; 1.21 } 1.22 1.23 + public void visitAnnotatedType(JCAnnotatedType tree) { 1.24 + // No need to retain type annotations any longer. 1.25 + // tree.annotations = translate(tree.annotations); 1.26 + tree.underlyingType = translate(tree.underlyingType); 1.27 + result = tree.underlyingType; 1.28 + } 1.29 + 1.30 public void visitTypeCast(JCTypeCast tree) { 1.31 tree.clazz = translate(tree.clazz); 1.32 if (tree.type.isPrimitive() != tree.expr.type.isPrimitive())