RFR: 8015831: Add lint check for calling overridable methods from a constructor [v11]

Archie L. Cobbs duke at openjdk.org
Tue Jan 17 22:29:54 UTC 2023


On Tue, 17 Jan 2023 15:53:57 GMT, Brian Goetz <briangoetz at openjdk.org> wrote:

> I agree with this conclusion. Also, even if a class is public, our question should be: is this class in a non-exported package? Because, if so, even a public class can be "implementation specific".

Agreed - I originally thought this was harder but actually the containing module is easy to access.

I've prototyped this now in a new `ThisEscapeModule` branch - relative diff is [here](https://github.com/archiecobbs/jdk/compare/ThisEscape...archiecobbs:jdk:ThisEscapeModule).

-------------

PR: https://git.openjdk.org/jdk/pull/11874



More information about the build-dev mailing list