On Fri, 8 May 2026 21:34:22 GMT, Dan Smith <[email protected]> wrote:

> If it's not really an invariant, and we're just doing this for user 
> convenience, then it makes sense to design for conventional use and not worry 
> about non-standard bytecode patterns.

I prefer this approach. It is already pretty narrow corner case. If a larval 
value object escapes because non-standard bytecode patterns, the user may 
experience some inconsistency caused by debugging of a value object 
construction. It does not look that we have to add more complexity to support 
this kind of non-standard bytecode patterns.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2412#discussion_r3211588196

Reply via email to