Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b86
-
Verified
Description
with(new JavaImporter()) {
new X();
}
causes:
java.lang.IllegalArgumentException: target and combiner types must match: (Object,Object)Object != (Object)ScriptFunction
at java.lang.invoke.MethodHandleStatics.newIllegalArgumentException(MethodHandleStatics.java:109)
at java.lang.invoke.MethodHandles.misMatchedTypes(MethodHandles.java:2129)
at java.lang.invoke.MethodHandles.foldArguments(MethodHandles.java:2068)
at jdk.nashorn.internal.lookup.MethodHandleFactory$StandardMethodHandleFunctionality.foldArguments(MethodHandleFactory.java:317)
at jdk.nashorn.internal.runtime.WithObject.fixExpressionCallSite(WithObject.java:242)
at jdk.nashorn.internal.runtime.WithObject.lookup(WithObject.java:172)
...
new X();
}
causes:
java.lang.IllegalArgumentException: target and combiner types must match: (Object,Object)Object != (Object)ScriptFunction
at java.lang.invoke.MethodHandleStatics.newIllegalArgumentException(MethodHandleStatics.java:109)
at java.lang.invoke.MethodHandles.misMatchedTypes(MethodHandles.java:2129)
at java.lang.invoke.MethodHandles.foldArguments(MethodHandles.java:2068)
at jdk.nashorn.internal.lookup.MethodHandleFactory$StandardMethodHandleFunctionality.foldArguments(MethodHandleFactory.java:317)
at jdk.nashorn.internal.runtime.WithObject.fixExpressionCallSite(WithObject.java:242)
at jdk.nashorn.internal.runtime.WithObject.lookup(WithObject.java:172)
...