On Wed, 6 May 2026 15:28:43 GMT, Chen Liang <[email protected]> wrote:
> I think we need to move the @DeserializeConstructor annotations from the > valueOf methods to the constructors to eliminate that particular regression. > Can you include that in your patch? Done. Maybe @kuksenko could verify that this solves [JDK-8383894](https://bugs.openjdk.org/browse/JDK-8383894). > new Byte[size] should become (Byte[]) > ValueClass.newReferenceArray(Byte.class, size) both with and without preview. @liach That's not possible because `ValueClass.newReferenceArray` throws when preview is disabled because boxes are identity classes then. ------------- PR Comment: https://git.openjdk.org/valhalla/pull/2390#issuecomment-4440127845 PR Review Comment: https://git.openjdk.org/valhalla/pull/2390#discussion_r3233562576
