Apache Solr open-source search software
LUCENE-4582: Disable forbidden-APIs checker in JDK 8, upgrade to ASM 4.1.
Uwe Schindler1e09024af50a
diff --git a/lucene/tools/build.xml b/lucene/tools/build.xmlindex 60f9c517fa3..7805711f14b 100644--- a/lucene/tools/build.xml+++ b/lucene/tools/build.xml@@ -26,7 +26,7 @@<path id="classpath"><fileset dir="lib">- <include name="asm-debug-all-4.0.jar"/>+ <include name="asm-debug-all-4.1.jar"/></fileset></path>diff --git a/lucene/tools/custom-tasks.xml b/lucene/tools/custom-tasks.xmlindex 9ddd05e3f58..c1f71fa0405 100644--- a/lucene/tools/custom-tasks.xml+++ b/lucene/tools/custom-tasks.xml@@ -10,7 +10,7 @@<taskdef resource="lucene-solr.antlib.xml"><classpath><pathelement location="${custom-tasks.dir}/../build/tools/classes/java" />- <fileset dir="${custom-tasks.dir}/lib" includes="asm-debug-all-4.0.jar" />+ <fileset dir="${custom-tasks.dir}/lib" includes="asm-debug-all-4.1.jar" /></classpath></taskdef><property name="custom-tasks.loaded" value="true"/>diff --git a/lucene/tools/ivy.xml b/lucene/tools/ivy.xmlindex 86fe27988c6..a3325de929f 100644--- a/lucene/tools/ivy.xml+++ b/lucene/tools/ivy.xml@@ -23,7 +23,7 @@We use the asm-debug-all library, as the as-all has no generics.It's not really debug, just not "stripped":-->- <dependency org="org.ow2.asm" name="asm-debug-all" rev="4.0" transitive="false"/>+ <dependency org="org.ow2.asm" name="asm-debug-all" rev="4.1" transitive="false"/><exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/></dependencies></ivy-module>diff --git a/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java b/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.javaindex 993a8322daa..dca88652c70 100644--- a/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java+++ b/lucene/tools/src/java/org/apache/lucene/validation/ForbiddenApisCheckTask.java@@ -315,6 +315,16 @@ public class ForbiddenApisCheckTask extends Task {@Overridepublic void execute() throws BuildException {+ // the checker is not compatible with JDK 1.8+ (changed class format: 52.0), don't fail just report warning:+ try {+ Collections.class.getMethod("emptySortedSet");+ // this is Java 8 :(+ log("Java 8 or later is currently not supported by this checker. Please run the checks with a previous JDK!", Project.MSG_WARN);+ return;+ } catch (NoSuchMethodException nsme) {+ // ignore, we are fine!+ }+AntClassLoader antLoader = null;try {if (classpath != null) {