JDK-8274911 : testlibrary_tests/ir_framework/tests/TestIRMatching.java fails with "java.lang.RuntimeException: Should have thrown exception"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-10-07
  • Updated: 2022-12-27
  • Resolved: 2021-10-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 18
17.0.7-oracleFixed 18 b19Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The following test failed in the JDK18 CI:

testlibrary_tests/ir_framework/tests/TestIRMatching.java

Here's a snippet from the log file:

TestIRMatching failed with one or more exceptions:
Should have thrown exception
java.lang.RuntimeException: Should have thrown exception
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at ir_framework.tests.Utils.shouldHaveThrownException(Utils.java:38)
	at ir_framework.tests.TestIRMatching.runCheck(TestIRMatching.java:342)
	at ir_framework.tests.TestIRMatching.main(TestIRMatching.java:146)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:51)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)
---------
java.lang.RuntimeException: TestIRMatching failed with one or more exceptions - check stderr and stdout
	at ir_framework.tests.TestIRMatching.main(TestIRMatching.java:312)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:51)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.RuntimeException: TestIRMatching failed with one or more exceptions - check stderr and stdout
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: TestIRMatching failed with one or more exceptions - check stderr and stdout
----------rerun:(38/9780)*----------
Comments
Fix request [17u] I backport this for parity with 17.0.7-oracle. No risk, only a test change. Clean backport. Tests pass. SAP nightly testing passed.
24-12-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/981 Date: 2022-12-23 10:33:36 +0000
23-12-2022

Changeset: f6234606 Author: Christian Hagedorn <chagedorn@openjdk.org> Date: 2021-10-12 13:21:35 +0000 URL: https://git.openjdk.java.net/jdk/commit/f62346066869b681d1cc9f63775393b11a48722a
12-10-2021

ILW = IR framework test fails intermittently, intermittent and only occurred once, no workaround = MLH = P4
07-10-2021