test/tools/javac/processing/environment/round/ErroneousAnnotations.java

Fri, 10 Jan 2014 19:02:54 +0100

author
jlahoda
date
Fri, 10 Jan 2014 19:02:54 +0100
changeset 2254
5ad8f004239f
parent 0
959103a6100f
permissions
-rw-r--r--

8030049: RoundEnvironment.getElementsAnnotatedWith receives wrong elements
Summary: Match the required and actual annotations using Element equivalence rather than TypeMirror equivalence, to avoid trouble with erroneous types.
Reviewed-by: darcy

aoqi@0 1 /** /nodynamiccopyright/
aoqi@0 2 * Class to hold annotations for TestElementsAnnotatedWith.
aoqi@0 3 */
aoqi@0 4
aoqi@0 5 @AnnotatedElementInfo(annotationName="java.lang.SuppressWarnings",
aoqi@0 6 expectedSize=0,
aoqi@0 7 names={})
aoqi@0 8 @Undefined
aoqi@0 9 public class ErroneousAnnotations {
aoqi@0 10 @Undefined
aoqi@0 11 private void foo() {return;}
aoqi@0 12 }

mercurial