News for hackers. Stuff that matters.
Re:JVM Anatomy Quarks by MaxBarraclough on Friday January 31, 2020 @05:21PM (#22206522)
I'm not getting #17: Trust Nonstatic Final Fields.

> what happens if someone changes that field?

The field is final. The static is final. How can the field be changed? Reflection?

Re:JVM Anatomy Quarks by UncleMeat on Saturday February 01, 2020 @01:52PM (#22212388)
Final applies to the field, not the object. You can still mutate the object pointed at by a final field.
Re:JVM Anatomy Quarks by MaxBarraclough on Saturday February 01, 2020 @04:06PM (#22213235)
Sure, but the instance's only field, is final.

The static reference KNOWN_M is final, and the only field of the pointed-to instance, x, is also final.