--- 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);