3 ms·
As explicitly stated in the proposal the new rules about super/this calls are exactly the same as for a blank final field initialization. So the change simplifi
by _0w8t 4y ago
As explicitly stated in the proposal the new rules about super/this calls are exactly the same as for a blank final field initialization. So the change simplifies some aspects of the language as it removes number of rules.
Moreover, given that Java calls overridden methods when super() calls a non-final method, the existing rules prevent some reasonable code patterns (again, see the proposal for the example) and the new ones allows to address those in reasonable and readable ways.