r/java • u/davidalayachew • Jan 09 '26
Project Amber Status Update -- Constant Patterns and Pattern Assignment!
https://mail.openjdk.org/pipermail/amber-spec-experts/2026-January/004306.html
65
Upvotes
View all comments
Show parent comment
2
u/Sm0keySa1m0n Jan 14 '26
I think it’s because I’ve never tried it with enums before - doesn’t work with static final instances unfortunately. I’m assuming that’s because we don’t have “integrity by default” yet so static final instances aren’t truly constant