On Fri, 13 Feb 2026 14:20:15 GMT, Vicente Romero <[email protected]> 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

Reply via email to