JDK-8282142 : [TestCase] compiler/inlining/ResolvedClassTest.java will fail when --with-jvm-features=-compiler1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 18,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-02-19
  • Updated: 2022-04-26
  • Resolved: 2022-03-05
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 19
17.0.4-oracleFixed 19 b13Fixed
Related Reports
Relates :  
Description
----------System.err:(22/1285)----------
 stdout: [    336    1    b        compiler.jsr292.ResolvedClassTest$TestStaticInit::test (4 bytes)
                            @ 0   compiler.jsr292.ResolvedClassTest$TestStaticInit$A::m (1 bytes)   failed initial checks
];
 stderr: [openjdk version "19-internal" 2022-09-20
OpenJDK Runtime Environment (fastdebug build 19-internal+0-jenkins-slave-20220215150808-jdk-ls-3be7888)
OpenJDK 64-Bit Server VM (fastdebug build 19-internal+0-jenkins-slave-20220215150808-jdk-ls-3be7888, mixed mode, sharing)
]
 exitValue = 0

java.lang.RuntimeException: 'TestStaticInit$A::m (1 bytes)   no static binding' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
	at compiler.jsr292.ResolvedClassTest.testStaticInit(ResolvedClassTest.java:91)
	at compiler.jsr292.ResolvedClassTest.main(ResolvedClassTest.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
	at java.base/java.lang.Thread.run(Thread.java:833)

Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/363 Date: 2022-04-25 15:28:18 +0000
25-04-2022

Fix Request (17u): Should get backported for parity with 17.0.4-oracle. Applies cleanly. Test has passed.
25-04-2022

Changeset: c459f8f4 Author: wanghaomin <wanghaomin@loongson.cn> Committer: Vladimir Kozlov <kvn@openjdk.org> Date: 2022-03-05 00:01:49 +0000 URL: https://git.openjdk.java.net/jdk/commit/c459f8f406a99cf78814bb5722f546ae1cdb6c6f
05-03-2022

ILW = test failure w/o C1; non-standard config; no workaround = MLH = P4
24-02-2022

It sounds like a test bug. The test was written to test a C1 issue, and it doesn't normally run with C2 only.
24-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7541 Date: 2022-02-19 03:49:58 +0000
24-02-2022