changeset 3065:9cb6d18db886

Undo ChangeSet 119747cd9f25 from work on bug 8023682.
author wmdietl
date Wed, 20 Nov 2013 15:47:14 -0800
parents 4ee914b16b73
children 2da59ead687f
files src/share/classes/com/sun/tools/javac/comp/Check.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/Check.java	Wed Nov 20 13:51:35 2013 -0800
+++ b/src/share/classes/com/sun/tools/javac/comp/Check.java	Wed Nov 20 15:47:14 2013 -0800
@@ -2977,6 +2977,7 @@
     boolean annotationApplicable(JCAnnotation a, Symbol s) {
         Attribute.Array arr = getAttributeTargetAttribute(a.annotationType.type.tsym);
         Name[] targets;
+
         if (arr == null) {
             targets = defaultTargetMetaInfo(a, s);
         } else {
@@ -2993,7 +2994,7 @@
         }
         for (Name target : targets) {
             if (target == names.TYPE)
-                { if (s.kind == TYP && !s.isAnonymous()) return true; }
+                { if (s.kind == TYP) return true; }
             else if (target == names.FIELD)
                 { if (s.kind == VAR && s.owner.kind != MTH) return true; }
             else if (target == names.METHOD)