hg: jdk8u/jdk8u-dev/langtools: 8030049: RoundEnvironment.getElementsAnnotatedWith receives wrong elements

jan.lahoda at oracle.com jan.lahoda at oracle.com
Wed Jan 29 15:53:19 PST 2014


Changeset: 5ad8f004239f
Author:    jlahoda
Date:      2014-01-10 19:02 +0100
URL:       http://hg.openjdk.java.net/jdk8u/jdk8u-dev/langtools/rev/5ad8f004239f

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

! src/share/classes/com/sun/tools/javac/processing/JavacRoundEnvironment.java
! test/tools/javac/processing/environment/round/BuriedAnnotations.java
+ test/tools/javac/processing/environment/round/ErroneousAnnotations.java
+ test/tools/javac/processing/environment/round/ErroneousAnnotations.out
! test/tools/javac/processing/environment/round/Part1.java
! test/tools/javac/processing/environment/round/Part2.java
! test/tools/javac/processing/environment/round/SurfaceAnnotations.java
! test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java
! test/tools/javac/processing/environment/round/TypeParameterAnnotations.java



More information about the jdk8u-dev-changes mailing list