src/share/classes/com/sun/tools/javac/comp/Attr.java

changeset 165
4f7b344a1ce0
parent 161
ddd75a295501
child 186
09eb1acc9610
equal deleted inserted replaced
164:5ebe90e0afff 165:4f7b344a1ce0
704 memberEnter.memberEnter(tree, env); 704 memberEnter.memberEnter(tree, env);
705 annotate.flush(); 705 annotate.flush();
706 } 706 }
707 } 707 }
708 708
709 // Check that the variable's declared type is well-formed.
710 chk.validate(tree.vartype, env);
711
712 VarSymbol v = tree.sym; 709 VarSymbol v = tree.sym;
713 Lint lint = env.info.lint.augment(v.attributes_field, v.flags()); 710 Lint lint = env.info.lint.augment(v.attributes_field, v.flags());
714 Lint prevLint = chk.setLint(lint); 711 Lint prevLint = chk.setLint(lint);
712
713 // Check that the variable's declared type is well-formed.
714 chk.validate(tree.vartype, env);
715 715
716 try { 716 try {
717 chk.checkDeprecatedAnnotation(tree.pos(), v); 717 chk.checkDeprecatedAnnotation(tree.pos(), v);
718 718
719 if (tree.init != null) { 719 if (tree.init != null) {

mercurial