Re: -Xdoclint unrecognized in JDK16 due to new module

2020-12-15 Thread Alan Bateman
On 15/12/2020 22:19, Jonathan Gibbons wrote: On 12/15/20 12:26 AM, Alan Bateman wrote: I think the Plexus Classworlds launcher sets a funky TCCL that impacts the ServiceLoader lookup of DocLint providers. Can the ServiceLoader usage in DocLint be changed to use the system class loader

Re: -Xdoclint unrecognized in JDK16 due to new module

2020-12-15 Thread Jonathan Gibbons
On 12/15/20 12:26 AM, Alan Bateman wrote: On 14/12/2020 20:05, Benjamin Marwell wrote: 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

Re: -Xdoclint unrecognized in JDK16 due to new module

2020-12-15 Thread Alan Bateman
On 14/12/2020 20:05, Benjamin Marwell wrote: 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

Re: -Xdoclint unrecognized in JDK16 due to new module

2020-12-14 Thread Jonathan Gibbons
Ben, jdk.compiler "uses" a service that "jdk.javadoc" provides, so as long as "jdk.javadoc" is available in the image bring executed, I would expect jdk.javadoc to be linked in. There is different minor issue that the system could fail in a more friendly way when the jdk.javadoc module is

-Xdoclint unrecognized in JDK16 due to new module

2020-12-14 Thread Benjamin Marwell
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]: