Skip to content

Commit

Permalink
see #15560, see #16047 - make error_prone work on Java 10/11. For det…
Browse files Browse the repository at this point in the history
…ails refer to:

- google/error-prone#860
- google/error-prone#1086

git-svn-id: https://josm.openstreetmap.de/svn/trunk@14109 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Aug 8, 2018
1 parent 5014697 commit 3690ed3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<condition property="isJava11">
<matches string="${ant.java.version}" pattern="1[1-9]" />
</condition>
<!-- Disable error_prone on Java 10+, see https://github.com/google/error-prone/issues/860 -->
<!-- error_prone works differently on Java 10+, see https://github.com/google/error-prone/issues/860 -->
<condition property="javac.compiler" value="modern" else="com.google.errorprone.ErrorProneAntCompilerAdapter">
<isset property="isJava10"/>
</condition>
Expand Down Expand Up @@ -332,6 +332,8 @@ Build-Date: ${build.tstamp}
<compilerclasspath>
<pathelement location="${error_prone_ant.jar}"/>
</compilerclasspath>
<compilerarg line="-XDcompilePolicy=simple" compiler="modern"/>
<compilerarg line="-processorpath ${error_prone_ant.jar}" compiler="modern"/>
<compilerarg value="-Xlint:cast"/>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:dep-ann"/>
Expand All @@ -348,6 +350,7 @@ Build-Date: ${build.tstamp}
<compilerarg value="-Xep:CatchAndPrintStackTrace:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
<compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
<compilerarg value="-Xep:StringSplitter:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
<compilerarg value="-Xplugin:ErrorProne -Xep:CatchAndPrintStackTrace:OFF -Xep:ReferenceEquality:OFF -Xep:StringSplitter:OFF" compiler="modern"/>
<compilerarg line="-Xmaxwarns 1000"/>
</javac>
</target>
Expand All @@ -359,6 +362,8 @@ Build-Date: ${build.tstamp}
<compilerclasspath>
<pathelement location="${error_prone_ant.jar}"/>
</compilerclasspath>
<compilerarg line="-XDcompilePolicy=simple" compiler="modern"/>
<compilerarg line="-processorpath ${error_prone_ant.jar}" compiler="modern"/>
<compilerarg value="-Xlint:cast"/>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:dep-ann"/>
Expand All @@ -379,6 +384,7 @@ Build-Date: ${build.tstamp}
<compilerarg value="-Xep:ShortCircuitBoolean:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
<compilerarg value="-Xep:StringSplitter:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
<compilerarg value="-Xep:JdkObsolete:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
<compilerarg value="-Xplugin:ErrorProne -Xep:ReferenceEquality:OFF -Xep:ImmutableEnumChecker:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:FloatingPointLiteralPrecision:OFF -Xep:ShortCircuitBoolean:OFF -Xep:StringSplitter:OFF -Xep:JdkObsolete:OFF" compiler="modern"/>
<compilerarg line="-Xmaxwarns 1000"/>
<exclude name="org/openstreetmap/josm/io/audio/fx/*.java" if:set="noJavaFX"/>
</javac>
Expand Down

0 comments on commit 3690ed3

Please sign in to comment.