changeset 2205:6182a906cba1

Ensure annotations in an annotated type tree are validated.
author wmdietl
date Sun, 17 Feb 2013 19:23:14 -0800
parents b06816794394
children 5d5488d2ce00
files src/share/classes/com/sun/tools/javac/comp/Check.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/Check.java	Sun Feb 17 19:22:36 2013 -0800
+++ b/src/share/classes/com/sun/tools/javac/comp/Check.java	Sun Feb 17 19:23:14 2013 -0800
@@ -1202,7 +1202,7 @@
 
     /** Validate a type expression. That is,
      *  check that all type arguments of a parametric type are within
-     *  their bounds. This must be done in a second phase after type attributon
+     *  their bounds. This must be done in a second phase after type attribution
      *  since a class might have a subclass as type parameter bound. E.g:
      *
      *  <pre>{@code
@@ -1324,6 +1324,7 @@
 
         @Override
         public void visitAnnotatedType(JCAnnotatedType tree) {
+            validateAnnotations(tree.annotations, tree.type.tsym);
             tree.underlyingType.accept(this);
         }