On Fri, 20 Feb 2026 12:59:47 GMT, Chen Liang <[email protected]> wrote:

>> test/jdk/valhalla/valuetypes/ValueClassCompatibilityTest.java line 106:
>> 
>>> 104:         hasOopsCase(true, String.class, "final identity class");
>>> 105:         hasOopsCase(true, Comparable.class, "interface");
>>> 106:         hasOopsCase(true, int[].class, "array class");
>> 
>> I'm not following. How does/can a primitive `int[]` contain oops?
>
> A field `int[] a` is a reference, never flat.

Of course. But I interpreted `hasOopsCase` meaning "does this container contain 
oops" whereby the `[]` is the container and the `int` is the field. So is 
`hasOopsCase` only called on the element of the array rather than the container?

-------------

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2143#discussion_r2833099515

Reply via email to