test/tools/javac/processing/environment/round/ErroneousAnnotations.java@5ad8f004239f
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.
5 @AnnotatedElementInfo(annotationName="java.lang.SuppressWarnings",
9 public class ErroneousAnnotations {
11 private void foo() {return;}