langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 1538 3cbbc9424f43
parent 1534 e923a41e84cc
child 1791 d378f023c36d
--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java	Mon Oct 27 14:25:59 2008 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java	Tue Oct 28 14:05:59 2008 +0000
@@ -706,13 +706,13 @@
             }
         }
 
-        // Check that the variable's declared type is well-formed.
-        chk.validate(tree.vartype, env);
-
         VarSymbol v = tree.sym;
         Lint lint = env.info.lint.augment(v.attributes_field, v.flags());
         Lint prevLint = chk.setLint(lint);
 
+        // Check that the variable's declared type is well-formed.
+        chk.validate(tree.vartype, env);
+
         try {
             chk.checkDeprecatedAnnotation(tree.pos(), v);