On Wed, 16 Sep 2026 23:35:41 GMT, Chris Plummer <[email protected]> wrote:
> Did you first reproduce the issue by adding Byte before your applying your
> fix.
Yes, sure.
I saw following error in .jtr file when I just added `java.lang.Byte` to
TestInstanceKlassSize.java and ran the test with
`JTREG=VM_OPTIONS=--enable-preview`.
----------System.err:(15/1100)----------
java.lang.RuntimeException: The size computed by SA for java.lang.Byte does not
match.: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:715)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
at TestInstanceKlassSize.startMeWithArgs(TestInstanceKlassSize.java:117)
at TestInstanceKlassSize.main(TestInstanceKlassSize.java:159)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:583)
at
com.sun.javatest.regtest.agent.MainMethodHelper.executeModernMainClass(MainMethodHelper.java:56)
at
com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:140)
at java.base/java.lang.Thread.run(Thread.java:1552)
JavaTest Message: Test threw exception: java.lang.RuntimeException: The size
computed by SA for java.lang.Byte does not mat
ch.: expected true, was false
JavaTest Message: shutting down test
Note that the error did not happen without `--enable-preview`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/32848#issuecomment-5706659227