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.bate...@oracle.com> > À: "Remi Forax" <fo...@univ-mlv.fr> > Cc: "jigsaw-dev" <jigsaw-dev@openjdk.java.net>, "compiler-dev" > <compiler-...@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