You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STDERR:
11:44:56 java.lang.AssertionError: Unexpected exception was thrown while testing return value conversion: class java.lang.Boolean => boolean; parameter: null
11:44:56 at ExplicitCastArgumentsTest.testConversion(ExplicitCastArgumentsTest.java:609)
11:44:56 at ExplicitCastArgumentsTest.testNullRef2Prim(ExplicitCastArgumentsTest.java:124)
11:44:56 at ExplicitCastArgumentsTest.main(ExplicitCastArgumentsTest.java:71)
11:44:56 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:44:56 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
11:44:56 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:44:56 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
11:44:56 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
11:44:56 at java.base/java.lang.Thread.run(Thread.java:831)
11:44:56 Caused by: java.lang.NullPointerException
11:44:56 at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:521)
11:44:56 at ExplicitCastArgumentsTest.testConversion(ExplicitCastArgumentsTest.java:563)
11:44:56 ... 8 more
11:44:56
11:44:56 JavaTest Message: Test threw exception: java.lang.AssertionError
11:44:56 JavaTest Message: shutting down test
11:44:56
11:44:56 STDOUT:
11:44:56 -Dseed=-8301395383398379035
11:44:56 -DtestLimit=2000
11:44:56
11:44:56 TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Unexpected exception was thrown while testing return value conversion: class java.lang.Boolean => boolean; parameter: null
The text was updated successfully, but these errors were encountered:
java.lang.AssertionError: Unexpected exception was thrown while testing return value conversion: boolean => class java.lang.Number; parameter: true
at ExplicitCastArgumentsTest.testConversion(ExplicitCastArgumentsTest.java:609)
at ExplicitCastArgumentsTest.testPrim2Ref(ExplicitCastArgumentsTest.java:182)
at ExplicitCastArgumentsTest.main(ExplicitCastArgumentsTest.java:73)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.invoke.WrongMethodTypeException
at java.base/java.lang.invoke.ConvertHandle$FilterHelpers.getBoxingReturnFilter(ConvertHandle.java:241)
at java.base/java.lang.invoke.ConvertHandle$FilterHelpers.getReturnFilter(ConvertHandle.java:154)
at java.base/java.lang.invoke.MethodHandles.explicitCastArguments(MethodHandles.java:3015)
at ExplicitCastArgumentsTest.testConversion(ExplicitCastArgumentsTest.java:559)
... 8 more
The test fails due to a difference in the openj9 implementation of Number and Boolean. NullPointerException when attempting to find the Boolean class and WrongMethodTypeException when trying to convert a Boolean to Number. Since both are calling the same target MethodHandle, this is likely a hotspot specific test, openj9 doesn't utilise the same classes as hotspot and would explain why the method handle can't find a couple of classes.
Failure link
Optional info
Failure output (captured from console output)
The text was updated successfully, but these errors were encountered: