RFR: 8015831: Add lint check for calling overridable methods from a constructor [v7]
Archie L. Cobbs
duke at openjdk.org
Thu Jan 12 17:16:34 UTC 2023
On Thu, 12 Jan 2023 10:56:53 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Archie L. Cobbs has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Use the more appropriate Type comparison method Types.isSameType().
>> - Add some more comments to clarify how the analysis works.
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ThisEscapeAnalyzer.java line 411:
>
>> 409: final boolean referenceExpressionNode;
>> 410: switch (tree.getTag()) {
>> 411: case CASE:
>
> surprised to see `CASE` here - as that's not an expression
I put it there because of switch expressions and `yeild`... ?
-------------
PR: https://git.openjdk.org/jdk/pull/11874
More information about the build-dev
mailing list