--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java Tue Feb 12 19:25:09 2013 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java Tue Feb 12 17:15:29 2013 -0800
@@ -766,6 +766,8 @@
JavaFileObject prevSource = log.useSource(env.toplevel.sourcefile);
try {
+ memberEnter.typeAnnotate(initializer, env, env.info.enclVar);
+ annotate.flush();
Type itype = attribExpr(initializer, env, type);
if (itype.constValue() != null)
return coerce(itype, type).constValue();
@@ -2539,7 +2541,7 @@
if (exprType.isErroneous()) {
//if the qualifier expression contains problems,
- //give up atttribution of method reference
+ //give up attribution of method reference
result = that.type = exprType;
return;
}