RFR: improvements to lint warning on method overriding [v2]
Vicente Romero
vromero at openjdk.org
Fri Feb 13 14:33:43 UTC 2026
On Fri, 13 Feb 2026 14:20:15 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java line 4017:
>>
>>> 4015: LintWarnings.IncompatibleNullRestrictions(
>>> 4016: Fragments.LambdaArgumentTypeNullabilityMismatch(incompatibleParam.overridingType(),
>>> 4017: incompatibleParam.overridenType(), tree.target)));
>>
>> I've missed this last time -- should this code only run _after_ speculative attribution, when the types are settled?
>
> yes makes sense, we are doing that for method references
just updated the code, thanks!
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2098#discussion_r2804512699
More information about the valhalla-dev
mailing list