RFR: 8015831: Add lint check for calling overridable methods from a constructor [v5]
Archie L. Cobbs
duke at openjdk.org
Wed Jan 11 03:30:05 UTC 2023
On Tue, 10 Jan 2023 23:38:14 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> OK I'm glad you pointed that out because I'm a little unclear on the best way to do this bit.
>>
>> Just to confirm, you are saying that this:
>>
>> `if (erasure(type).equalsIgnoreMetadata(outerType)) {`
>>
>> should be replaced with this?
>>
>> `if (isSameType(type, outerType)) {`
>
> yes
Thanks... updated in `6e96a7d76f8`.
-------------
PR: https://git.openjdk.org/jdk/pull/11874
More information about the serviceability-dev
mailing list