compiler/valhalla/inlinetypes/TestTearing.java currently fails because of this:
java.lang.RuntimeException: assertTrue: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:715)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:531)
at compiler.valhalla.inlinetypes.TestTearing$Runner.run(TestTearing.java:198)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: assertTrue: expected true, was false
I attached a simple test that reproduces this:
javac -source 25 --enable-preview --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED Test.java && java --enable-preview --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED -XX:-TieredCompilation -cp . -XX:CompileCommand=compileonly,Test*::test -XX:CompileCommand=quiet -XX:CompileCommand=print,*::run Test
Note: Test.java uses preview features of Java SE 25.
Note: Recompile with -Xlint:preview for details.
CompileCommand: compileonly Test*.test bool compileonly = true
Exception in thread "main" java.lang.RuntimeException: FAIL1
at Test.test(Test.java:51)
at Test.main(Test.java:62)
java.lang.RuntimeException: assertTrue: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:715)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:531)
at compiler.valhalla.inlinetypes.TestTearing$Runner.run(TestTearing.java:198)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: assertTrue: expected true, was false
I attached a simple test that reproduces this:
javac -source 25 --enable-preview --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED Test.java && java --enable-preview --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED -XX:-TieredCompilation -cp . -XX:CompileCommand=compileonly,Test*::test -XX:CompileCommand=quiet -XX:CompileCommand=print,*::run Test
Note: Test.java uses preview features of Java SE 25.
Note: Recompile with -Xlint:preview for details.
CompileCommand: compileonly Test*.test bool compileonly = true
Exception in thread "main" java.lang.RuntimeException: FAIL1
at Test.test(Test.java:51)
at Test.main(Test.java:62)