RFR: 8337980: Javac allows invocation of an inherited instance method from a static method [v2]
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Oct 8 15:32:00 UTC 2024
On Tue, 8 Oct 2024 15:14:32 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> OK now I understand your concern. This didn't occur to me before because I was assuming that `mergeAbstracts` did not modify any existing data. From a superficial look, that appears to be the case
This is indeed the case - the method doesn't change existing data. So we can call it multiple times. But it's a complex method doing some complex analysis to scan all the applicable abstract symbols and merge them into a new method. Doing all that work just to throw it a way - and then doing it all over again is a bit sad (but we can obviously live with that).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20533#issuecomment-2400172077
More information about the compiler-dev
mailing list