RFR: 8263926: JavacFileManager.hasExplicitLocation fails with NPE while compiling [v2]

Guoxiong Li gli at openjdk.java.net
Sat Jun 19 09:19:57 UTC 2021


On Fri, 18 Jun 2021 21:05:24 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> And about the null check, I want to keep it so that the compiler won't crash when meeting the situation like this bug.
>
>> And about the null check, I want to keep it so that the compiler won't crash when meeting the situation like this bug.
> 
> If we believe that the null should not occur, it would be covering up a bug to provide the null check.

Got it. I can't find a situation now that the null occurs. So I removed the null check just now.

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

PR: https://git.openjdk.java.net/jdk/pull/4523


More information about the compiler-dev mailing list