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

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

mercurial