javac bug when calling javac from the ToolProvider

forax at univ-mlv.fr forax at univ-mlv.fr
Tue Jan 24 11:12:18 UTC 2017


Thanks Alan,
yes, it's the same bug !
i was not able to find it in the database,

Rémi

----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "jigsaw-dev" <jigsaw-dev at openjdk.java.net>, "compiler-dev" <compiler-dev at openjdk.java.net>
> Envoyé: Mardi 24 Janvier 2017 12:08:41
> Objet: Re: javac bug when calling javac from the ToolProvider

> On 24/01/2017 10:59, Remi Forax wrote:
> 
>> Hi all,
>> when calling javac from the ToolProvider, i get a NPE with the jdkb152/b153.
>>
>> in getLocationForModule(Path), pathLocations can be null
>>    Location getLocationForModule(Path dir) {
>>       return pathLocations.get(dir);
>>    }
>>
>> getLocationForModule(String) detects that pathLocations may be null and acts
>> accordingly,
>> but there is no such check in getLocationForModule(Path).
>>
> This looks like similar to JDK-8172785 [1] which is fixed in jdk9/dev
> for jdk-9+154.
> 
> -Alan
> 
> [1] https://bugs.openjdk.java.net/browse/JDK-8172785


More information about the compiler-dev mailing list