Compiler NPE com.sun.tools.javac.code.Types.removeWildcards(Types.java:601)

zlob jc zlob.jc at gmail.com
Mon Jan 23 09:15:09 UTC 2017


Right now we are building our project with IDEA on dev and Ant-script on CI.
But we consider to switch to maven and have issue with compiler bug when we
try to build project with Maven.
We try jdk 1.8.0_65, 1.8.0_111, 1.8.0_121 and various versions of maven
compiler plugin results are the same.
This module has hight coupling and we can't localize root of issue yet, so
we have no sample code to reproduce this.
Any help are welcome.

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T19:41:47+03:00)
Maven home: C:\Program Files\Maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_121\jre
Default locale: ru_RU, platform encoding: Cp1251
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

Full log https://gist.github.com/zlobjc/4f6885a0e5114542cafabe7fe496836b
--- maven-compiler-plugin:3.6.0:compile (default-compile) @ <PROJECT> ---
Changes detected - recompiling the module!
Compiling 3190 source files to E:\<PROJECT>\target\classes
An exception has occurred in the compiler (1.8.0_111).
java.lang.NullPointerException
at com.sun.tools.javac.code.Types.removeWildcards(Types.java:601)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20170123/ad6ebb8c/attachment.html>


More information about the compiler-dev mailing list