diff -r b82982ac3ca2 -r ac839d6f4953 src/share/classes/com/sun/tools/javac/code/AnnoConstruct.java --- a/src/share/classes/com/sun/tools/javac/code/AnnoConstruct.java Mon Oct 21 15:37:11 2013 -0700 +++ b/src/share/classes/com/sun/tools/javac/code/AnnoConstruct.java Tue Oct 22 03:36:44 2013 +0200 @@ -25,6 +25,7 @@ package com.sun.tools.javac.code; import java.lang.annotation.Annotation; +import java.lang.annotation.Inherited; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -112,7 +113,8 @@ } // Deal with inherited annotations - if (direct == null && container == null) + if (direct == null && container == null && + annoType.isAnnotationPresent(Inherited.class)) return getInheritedAnnotations(annoType); // Pack them in an array