JDK-8222554 : [Graal] org.graalvm.compiler.jtt.except.BC_checkcast3 fails with org.junit.ComparisonFailure
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-04-16
  • Updated: 2019-05-30
  • Resolved: 2019-05-30
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 13
13Resolved
Related Reports
Duplicate :  
Relates :  
Description
org.graalvm.compiler.jtt.except.BC_checkcast3 fails with

1) run0(org.graalvm.compiler.jtt.except.BC_checkcast3)
org.junit.ComparisonFailure: Exception message expected:<... cast to class [Lorg[/graalvm/compiler/jtt/JTTTest$DummyTestClass; ([Ljava.lang.Object; is in module java.base of loader 'bootstra]p')> but was:<... cast to class [Lorg[.graalvm.compiler.jtt.JTTTest$DummyTestClass; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lorg.graalvm.compiler.jtt.JTTTest$DummyTestClass; is in unnamed module of loader 'ap]p')>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.graalvm.compiler.core.test.GraalCompilerTest.assertEquals(GraalCompilerTest.java:915)
	at org.graalvm.compiler.core.test.GraalCompilerTest.testAgainstExpected(GraalCompilerTest.java:885)
	at org.graalvm.compiler.jtt.JTTTest.runTest(JTTTest.java:111)
	at org.graalvm.compiler.jtt.JTTTest.runTest(JTTTest.java:94)
	at org.graalvm.compiler.jtt.JTTTest.runTest(JTTTest.java:90)
	at org.graalvm.compiler.jtt.except.BC_checkcast3.run0(BC_checkcast3.java:56)

when running with -Xcomp (note no Graal as JIT was used)
Comments
Adding the testbug label for now. Please remove if it turns out to be a JIT issue.
23-04-2019

[~dlong] JDK-8192853 was filed against "Graal JIT mode + -Xcomp", this bug is reproduced just in "-server -Xcomp" configuration. So, this is why I filed separate bug.
18-04-2019

[~epavlova] In JDK-8192853, Doug said "I propose that Graal unit tests are not to be run with -Xcomp". So should we make this a duplicate?
18-04-2019

To reproduce run compiler/graalunit/JttExceptTest.java or create smaller test case like open/test/hotspot/jtreg/compiler/graalunit/BC.java to run only failed test: /* * @test * @summary * @requires vm.opt.final.EnableJVMCI == true * * @modules jdk.internal.vm.compiler * * @library /test/lib /compiler/graalunit / * * @build compiler.graalunit.common.GraalUnitTestLauncher * * @run main compiler.graalunit.common.GraalUnitTestLauncher -prefix org.graalvm.compiler.jtt.except.BC_checkcast3 */ and the run > make run-test TEST="compiler/graalunit/BC.java" TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:-UseJVMCICompiler -Xcomp"
16-04-2019