Hello all, it caught my attention that doclint functionality was moved to the jdk.javadoc module [1].
Now, when calling ToolProvider.getSystemJavaCompiler().getTask(…), the presence of the option '-Xdoclint:-missing' and similar options will throw this exception [2]: java.lang.IllegalArgumentException: error: invalid flag: -Xdoclint:-missing. This call is being used in Apache Maven, and the Apache Zookeper project already suffers from this issue and reported it upstream [3]. Adding the modules to the maven script 'mvn' did not help. But when calling javac as an external tool (i.e. not via ToolProvider in the same process), the options are being recognized. I wonder how the doclint options can be made available to the ToolProvider.getSystemJavaCompiler().getTask(…) call again. Maven itself (and in this case: the compiler plugin) is, as you know, a non-modular project. Best regards, Ben [1] https://bugs.openjdk.java.net/browse/JDK-8252712 [2] https://github.com/bmarwell/maven-compiler-plugin/runs/1546156526?check_suite_focus=true [3] https://bugs.openjdk.java.net/browse/JDK-8253996