--- a/nashorn/src/jdk/nashorn/internal/runtime/linker/NashornBeansLinker.java Tue Feb 25 18:56:10 2014 +0530
+++ b/nashorn/src/jdk/nashorn/internal/runtime/linker/NashornBeansLinker.java Wed Feb 26 13:17:57 2014 +0100
@@ -100,6 +100,11 @@
return filters != null ? MethodHandles.filterArguments(typed, 0, filters) : typed;
}
+ @Override
+ public MethodHandle asTypeLosslessReturn(MethodHandle handle, MethodType fromType) {
+ return Implementation.asTypeLosslessReturn(this, handle, fromType);
+ }
+
private static boolean shouldConvert(final Class<?> handleType, final Class<?> fromType) {
return handleType == Object.class && fromType == Object.class;
}