javac bug when calling javac from the ToolProvider
Alan Bateman
Alan.Bateman at oracle.com
Tue Jan 24 11:08:41 UTC 2017
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