Skip to content

Commit 7c78014

Browse files
committed
fix: make Error Prone work on JDK 17
1 parent b601b09 commit 7c78014

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.mvn/jvm.config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
2+
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
3+
--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
4+
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
5+
--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
6+
--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
7+
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
8+
--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
9+
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
10+
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
11+
--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,7 @@
717717
<plugin>
718718
<artifactId>maven-compiler-plugin</artifactId>
719719
<configuration>
720-
<source>11</source>
721-
<target>11</target>
720+
<release>11</release>
722721
<compilerArgs combine.children="override">
723722
<compilerArg>-XDcompilePolicy=simple</compilerArg>
724723
<compilerArg>--should-stop=ifError=FLOW</compilerArg>

0 commit comments

Comments
 (0)