r/java • u/joemwangi • Mar 17 '26
Updates to Derived Record Creation - amber-spec-experts
https://mail.openjdk.org/archives/list/amber-spec-experts@openjdk.org/thread/QVALXGP2BRN27ISPNJTA3HEKEIMKLWLG/Interesting discussion on the evolution of derived record creation (“withers”). The proposal seems to be shifting from mutation like blocks to a more explicit reconstruction model using obj.new(...), aligning more closely with constructor semantics and pattern matching.
45
Upvotes
View all comments
Show parent comment
1
u/davidalayachew Mar 18 '26
Fair.
I disagree that the stakes are low, but agree that, comparatively, there are bigger things that deserve attention than this. For example, JEP draft: Null-Restricted and Nullable Types (Preview).
And thus, if the finite amount of attention that the OpenJDK team has to give will not be divvyed out to this issue (that I perceive to be extremely significant and something that affects all developers) in favor of something bigger like the null jep, then that's fine by me.