RuntimeException: Original target method was called instead of the redefined one.
----------System.out:(90/6342)*----------
- IndyRedefineClass.cpp, 62: Setting redefined class name to vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0
- IndyRedefineClass.cpp, 56: Setting redefine trigger method name to redefineNow
- IndyRedefineClass.cpp, 134: Entering redefine tigger method: Lvm/mlvm/indy/func/jvmti/mergeCP_none2indy_b/INDIFY_Dummy0;.redefineNow
- IndyRedefineClass.cpp, 142: Redefining class vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0
# info :: File = ./bin/newclass/vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0.class
# info **Agent:: opening file ./bin/newclass/vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0.class
# info file size= 3156
File red completely
- IndyRedefineClass.cpp, 96: Enabling single step
- IndyRedefineClass.cpp, 175: Single step event: Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$Node; .getAndUnsetStatus :0
- IndyRedefineClass.cpp, 105: Forcing early return
- IndyRedefineClass.cpp, 90: Disabling single step
#>
#> WARNING: switching log to verbose mode,
#> because error is complained
#>
# ERROR: Test caught an exception:
# ERROR: java.lang.RuntimeException
# ERROR: at vm.mlvm.share.Env.throwAsUncheckedException(Env.java:193)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:350)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:244)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:186)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:157)
# ERROR: at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:325)
# ERROR: at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main(IndyRedefineTest.java:62)
# ERROR: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
# ERROR: at java.base/java.lang.reflect.Method.invoke(Method.java:578)
# ERROR: at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
# ERROR: at java.base/java.lang.Thread.run(Thread.java:1583)
# ERROR: Caused by: java.lang.reflect.InvocationTargetException
# ERROR: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
# ERROR: at java.base/java.lang.reflect.Method.invoke(Method.java:578)
# ERROR: at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.run(IndyRedefineTest.java:48)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTestInstance(MlvmTestExecutor.java:382)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:327)
# ERROR: ... 9 more
# ERROR: Caused by: java.lang.RuntimeException: Original target method was called instead of the redefined one. Test failed.
# ERROR: at vm.mlvm.indy.func.jvmti.mergeCP_none2indy_b.INDIFY_Dummy0.target(Unknown Source)
# ERROR: at vm.mlvm.indy.func.jvmti.mergeCP_none2indy_b.INDIFY_Dummy0.invokeTarget0(Unknown Source)
# ERROR: at vm.mlvm.indy.func.jvmti.mergeCP_none2indy_b.INDIFY_Dummy0.invokeTarget(Unknown Source)
# ERROR: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
# ERROR: ... 13 more
The following stacktrace is for failure analysis.
nsk.share.TestFailure: Test caught an exception: java.lang.RuntimeException
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:431)
at nsk.share.Log.complain(Log.java:402)
at nsk.share.Log.complain(Log.java:413)
at vm.mlvm.share.Env.complain(Env.java:172)
at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:246)
at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:186)
at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:157)
at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:325)
at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main(IndyRedefineTest.java:62)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1583)
### TRACE 1: TEST FAILED
----------System.out:(90/6342)*----------
- IndyRedefineClass.cpp, 62: Setting redefined class name to vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0
- IndyRedefineClass.cpp, 56: Setting redefine trigger method name to redefineNow
- IndyRedefineClass.cpp, 134: Entering redefine tigger method: Lvm/mlvm/indy/func/jvmti/mergeCP_none2indy_b/INDIFY_Dummy0;.redefineNow
- IndyRedefineClass.cpp, 142: Redefining class vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0
# info :: File = ./bin/newclass/vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0.class
# info **Agent:: opening file ./bin/newclass/vm\\mlvm\\indy\\func\\jvmti\\mergeCP_none2indy_b\\INDIFY_Dummy0.class
# info file size= 3156
File red completely
- IndyRedefineClass.cpp, 96: Enabling single step
- IndyRedefineClass.cpp, 175: Single step event: Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$Node; .getAndUnsetStatus :0
- IndyRedefineClass.cpp, 105: Forcing early return
- IndyRedefineClass.cpp, 90: Disabling single step
#>
#> WARNING: switching log to verbose mode,
#> because error is complained
#>
# ERROR: Test caught an exception:
# ERROR: java.lang.RuntimeException
# ERROR: at vm.mlvm.share.Env.throwAsUncheckedException(Env.java:193)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:350)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:244)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:186)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:157)
# ERROR: at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:325)
# ERROR: at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main(IndyRedefineTest.java:62)
# ERROR: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
# ERROR: at java.base/java.lang.reflect.Method.invoke(Method.java:578)
# ERROR: at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
# ERROR: at java.base/java.lang.Thread.run(Thread.java:1583)
# ERROR: Caused by: java.lang.reflect.InvocationTargetException
# ERROR: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
# ERROR: at java.base/java.lang.reflect.Method.invoke(Method.java:578)
# ERROR: at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.run(IndyRedefineTest.java:48)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTestInstance(MlvmTestExecutor.java:382)
# ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:327)
# ERROR: ... 9 more
# ERROR: Caused by: java.lang.RuntimeException: Original target method was called instead of the redefined one. Test failed.
# ERROR: at vm.mlvm.indy.func.jvmti.mergeCP_none2indy_b.INDIFY_Dummy0.target(Unknown Source)
# ERROR: at vm.mlvm.indy.func.jvmti.mergeCP_none2indy_b.INDIFY_Dummy0.invokeTarget0(Unknown Source)
# ERROR: at vm.mlvm.indy.func.jvmti.mergeCP_none2indy_b.INDIFY_Dummy0.invokeTarget(Unknown Source)
# ERROR: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
# ERROR: ... 13 more
The following stacktrace is for failure analysis.
nsk.share.TestFailure: Test caught an exception: java.lang.RuntimeException
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:431)
at nsk.share.Log.complain(Log.java:402)
at nsk.share.Log.complain(Log.java:413)
at vm.mlvm.share.Env.complain(Env.java:172)
at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:246)
at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:186)
at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:157)
at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:325)
at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main(IndyRedefineTest.java:62)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1583)
### TRACE 1: TEST FAILED
- duplicates
-
JDK-8308367 mlvm/indy/func/jvmti tests failed with "Original invokeTarget() method is executed after redefinition. Test failed."
- Open