JDK-8164493 : changes for JDK-816451 result in many " cannot be cast to java.lang.invoke.MethodHandle" failures
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-08-19
  • Updated: 2016-08-19
  • Resolved: 2016-08-19
Related Reports
Duplicate :  
Duplicate :  
Description
There are 19 or 20 failures on all platforms after the fix to JDK-8164451.
Comments
Duplicate of JDK-8164485
19-08-2016

----------System.err:(16/1388)---------- java.lang.ClassCastException: java.lang.String (in module: java.base) cannot be cast to java.lang.invoke.MethodHandle (in module: java.base) at java.lang.invoke.MethodHandleProxies$1.invoke(java.base@9-internal/MethodHandleProxies.java:187) at com.sun.proxy.jdk.proxy1.$Proxy0.run(jdk.proxy1/Unknown Source) at MethodHandleProxiesTest.test(MethodHandleProxiesTest.java:45) at MethodHandleProxiesTest.main(MethodHandleProxiesTest.java:30) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) JavaTest Message: Test threw exception: java.lang.ClassCastException: java.lang.String (in module: java.base) cannot be cast to java.lang.invoke.MethodHandle (in module: java.base) JavaTest Message: shutting down test
19-08-2016