RFR: 8015831: Add lint check for calling overridable methods from a constructor [v11]
Archie L. Cobbs
duke at openjdk.org
Tue Jan 17 14:53:49 UTC 2023
On Tue, 17 Jan 2023 11:23:24 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Archie L. Cobbs has updated the pull request incrementally with three additional commits since the last revision:
>>
>> - Remove unused type variable on method visitScoped().
>> - Remove expression type filtering; it doesn't seem to be needed.
>> - Clean up unused import.
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ThisEscapeAnalyzer.java line 1450:
>
>> 1448:
>> 1449: // Information about a constructor or method in the compilation unit
>> 1450: private static class MethodInfo {
>
> This could be a record, right? I believe you can then drop accessors and toString?
Yes! Will fix - thanks.
-------------
PR: https://git.openjdk.org/jdk/pull/11874
More information about the build-dev
mailing list