Class ErrorProneOperation


@NullMarked public class ErrorProneOperation extends AbstractOperation<ErrorProneOperation>
Compiles source code using Error Prone.

All javac diagnostics are reported, not just those of a failed compilation.

The Error Prone version defaults to ERROR_PRONE_VERSION on JDK 21+ and 2.42.0 on JDK 17-20.

Required JVM options in lib/bld/bld-wrapper.properties:

 bld.javaOptions=--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED\
   \ --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED\
   \ --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED\
   \ --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
 
Since:
1.0
Author:
Erik C. Thauvin