--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java Tue Sep 07 17:32:52 2010 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java Tue Sep 07 17:33:43 2010 +0100
@@ -182,6 +182,7 @@
if (!method.type.isErroneous())
buf.append(new Pair<MethodSymbol,Attribute>
((MethodSymbol)method, value));
+ t.type = result;
}
return new Attribute.Compound(a.type, buf.toList());
}
@@ -234,6 +235,7 @@
l.head,
env));
}
+ na.type = expected;
return new Attribute.
Array(expected, buf.toArray(new Attribute[buf.length()]));
}