Please consider the following changeset for inclusion in 8udev/langtools http://hg.openjdk.java.net/jdk9/dev/langtools/rev/df54b4b79988 For JDK-8042741 - Java 8 compiler throws NullPointerException depending location in source file. https://bugs.openjdk.java.net/browse/JDK-8042741 Thanks, Paul