Incident Report 9079511: Java Language Enhancement: Disallow access to static members via object references
Mahied Maruf
contact at mechite.com
Fri Jan 23 17:34:38 UTC 2026
> Archie Cobbs says:
> This is an easy call. The answer is that it's not worth changing
> because this would cause legacy to to start failing
> ...
> and there is already a perfectly reasonable workaround.
I agree. I do think it's worth issuing warnings _by default_, and
turning this into _opt-out_ rather than _opt-in_.
> I can't think of very many examples in the past. where Java made such
> a change (that is, where (a) and (b) were true.
>
> I guess the treatment of "_" and "yield" count.
Just to say that `yield` also does not count. It is a contextual
keyword AFAIK. There have been an extremely minimal amount of breaking
language changes, as far as I am aware, basically zero of Amber.
Best regards,
Mahied Maruf <contact at mechite.com>
More information about the amber-dev
mailing list