langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java
changeset 6594 d43f068fba19
parent 5847 1908176fd6e3
child 7681 1f0819a3341f
--- 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()]));
         }