--- a/jdk/test/java/dyn/InvokeDynamicPrintArgs.java Thu Dec 16 00:32:15 2010 -0800
+++ b/jdk/test/java/dyn/InvokeDynamicPrintArgs.java Thu Dec 16 15:59:27 2010 -0800
@@ -99,7 +99,7 @@
private static CallSite bsm(Lookup caller, String name, MethodType type) throws ReflectiveOperationException {
// ignore caller and name, but match the type:
Object bsmInfo = Arrays.asList(caller, name, type);
- return new CallSite(MH_printArgs().bindTo(bsmInfo).asCollector(Object[].class, type.parameterCount()).asType(type));
+ return new ConstantCallSite(MH_printArgs().bindTo(bsmInfo).asCollector(Object[].class, type.parameterCount()).asType(type));
}
private static MethodType MT_bsm() {
shouldNotCallThis();
@@ -117,7 +117,7 @@
bsmInfo.addAll(Arrays.asList((Object[])arg));
else
bsmInfo.add(arg);
- return new CallSite(MH_printArgs().bindTo(bsmInfo).asCollector(Object[].class, type.parameterCount()).asType(type));
+ return new ConstantCallSite(MH_printArgs().bindTo(bsmInfo).asCollector(Object[].class, type.parameterCount()).asType(type));
}
private static MethodType MT_bsm2() {
shouldNotCallThis();