RFR: [bworld] Emit lint warnings if overriding method does not have same nullability [v6]

Vicente Romero vromero at openjdk.org
Tue Feb 10 15:20:47 UTC 2026


On Tue, 10 Feb 2026 15:03:44 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> emit a lint warning for cases like:
>> 
>> class Test {
>>     String! m(String s) { return ""; }
>> }
>> class Sub extends Test {
>>     @Override
>>     String m(String s) { return null; }
>> }
>> 
>> or:
>> 
>> class Test {
>>     String m(String! s) { return ""; }
>> }
>> class Sub extends Test {
>>     @Override
>>     String m(String s) { return null; }
>> }
>
> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
> 
>   adding support for method references

I added support for method references

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/2058#issuecomment-3878417731


More information about the valhalla-dev mailing list