Skip to content

Commit

Permalink
Switch to use ASM 6 with Java 9 support, see issue findbugsproject#105.
Browse files Browse the repository at this point in the history
The asm 6.0 snapshot was built from SVN 1818 version, from ASM_6_FEATURE
branch.
  • Loading branch information
iloveeclipse committed Jun 5, 2016
1 parent c2a8a96 commit 2e2c4ca
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ findbugs/lib/findbugs-annotations.jar
findbugs/lib/findbugs-ant.jar
findbugs/lib/findbugs.jar
findbugs/lib/apache-ant-1.8.3-src.zip
findbugs/lib/asm-debug-all-6.0-SNAPSHOT.jar
findbugs/local.properties
findbugs/optionalPlugin/
findbugs/design/architecture/architecture.aux
Expand Down
2 changes: 1 addition & 1 deletion .settings/de.loskutov.anyedit.AnyEditTools.prefs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
activeContentFilterList=*.makefile,makefile,*.Makefile,Makefile,Makefile.*,*.mk,MANIFEST.MF,.project
activeContentFilterList=*.makefile,makefile,*.Makefile,Makefile,Makefile.*,*.mk,MANIFEST.MF,.project,.classpath
addNewLine=true
convertActionOnSaave=AnyEdit.CnvrtTabToSpaces
eclipse.preferences.version=1
Expand Down
2 changes: 1 addition & 1 deletion bluej/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<fileset dir="${bin.dir}"/>
<zipfileset src="lib/findbugs.jar"/>
<zipfileset src="lib/bcel-6.0-SNAPSHOT.jar"/>
<zipfileset src="lib/asm-debug-all-5.0.2.jar"/>
<zipfileset src="lib/asm-debug-all-6.0-SNAPSHOT.jar"/>
<zipfileset src="lib/dom4j-1.6.1.jar"/>
<zipfileset src="lib/jsr305.jar"/>
<fileset file="smallBuggy.png"/>
Expand Down
2 changes: 1 addition & 1 deletion eclipsePlugin/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<classpathentry kind="lib" path="lib/jFormatString.jar"/>
<classpathentry kind="lib" path="lib/bcel-6.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="lib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="lib/asm-debug-all-5.0.2.jar"/>
<classpathentry kind="lib" path="lib/asm-debug-all-6.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="lib/jaxen-1.1.6.jar"/>
<classpathentry kind="lib" path="lib/commons-lang-2.6.jar"/>
<classpathentry kind="lib" path="lib/jsr305.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion eclipsePlugin/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Bundle-ClassPath: findbugs-plugin.jar,
lib/jaxen-1.1.6.jar,
lib/jFormatString.jar,
lib/commons-lang-2.6.jar,
lib/asm-debug-all-5.0.2.jar
lib/asm-debug-all-6.0-SNAPSHOT.jar
Bundle-Activator: de.tobject.findbugs.FindbugsPlugin
Bundle-Vendor: FindBugs Project
Bundle-Localization: plugin
Expand Down
2 changes: 1 addition & 1 deletion eclipsePlugin/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bin.includes = FindBugs.png,\
lib/jFormatString.jar,\
lib/jaxen-1.1.6.jar,\
lib/jsr305.jar,\
lib/asm-debug-all-5.0.2.jar
lib/asm-debug-all-6.0-SNAPSHOT.jar
src.includes = FindBugs.png,\
RELEASENOTES,\
about.html,\
Expand Down
2 changes: 1 addition & 1 deletion eclipsePlugin/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
annotations.jar,
jFormatString.jar,
commons-lang-2.6.jar,
asm-debug-all-5.0.2.jar,
asm-debug-all-6.0-SNAPSHOT.jar,
dom4j-1.6.1.jar,
jaxen-1.1.6.jar" />

Expand Down
2 changes: 1 addition & 1 deletion findbugs/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<classpathentry exported="true" kind="lib" path="lib/jFormatString.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jdepend-2.9.jar"/>
<classpathentry exported="true" kind="lib" path="lib/ant.jar" sourcepath="lib/apache-ant-1.8.3-src.zip"/>
<classpathentry exported="true" kind="lib" path="lib/asm-debug-all-5.0.2.jar" sourcepath="/asm3"/>
<classpathentry exported="true" kind="lib" path="lib/asm-debug-all-6.0-SNAPSHOT.jar" sourcepath="/asm3"/>
<classpathentry exported="true" kind="lib" path="lib/bcel-6.0-SNAPSHOT.jar">
<attributes>
<attribute name="javadoc_location" value="http://commons.apache.org/proper/commons-bcel/apidocs/"/>
Expand Down
2 changes: 1 addition & 1 deletion findbugs/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Bundle-ClassPath: findbugs.jar,
lib/bcel-6.0-SNAPSHOT.jar,
lib/dom4j-1.6.1.jar,
lib/junit.jar,
lib/asm-debug-all-5.0.2.jar,
lib/asm-debug-all-6.0-SNAPSHOT.jar,
lib/jaxen-1.1.6.jar,
lib/jFormatString.jar,
lib/commons-lang-2.6.jar,
Expand Down
13 changes: 12 additions & 1 deletion findbugs/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@
</delete>
</target>

<target name="init" depends="properties">
<target name="init" depends="properties,getasm6">
<mkdir dir="${scripts.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${doc.dir}"/>
Expand All @@ -1207,6 +1207,9 @@
<condition property="apidoc.uptodate">
<isset property="docs.uptodate"/>
</condition>
<condition property="asm6.exists">
<available file="${jar.dir}/asm-debug-all-6.0-SNAPSHOT.jar" />
</condition>
</target>

<target name="apiJavadoc" depends="version" unless="apidoc.uptodate">
Expand Down Expand Up @@ -1234,6 +1237,14 @@
sourcepath="src/java:src/gui:src/antTask" splitindex="true" use="true" version="true"/>
</target>

<!-- Download snapshot of asm 6.0 with Java 9 support, built from SVN version 1818 from ASM_6_FUTURE branch,
install resulting jar in lib. -->
<target name="getasm6" unless="asm6.exists">
<get src="https://github.com/findbugsproject/findbugs/releases/download/3.1.0_preview1/asm-debug-all-6.0-SNAPSHOT.jar"
dest="${jar.dir}/asm-debug-all-6.0-SNAPSHOT.jar"
verbose="on"/>
</target>

<!-- Download, patch, and build a modified BCEL 5.2. Install resulting bcel.jar in lib. -->
<target name="patchbcel">
<delete dir="${build.dir}/bcel-5.2-src"/>
Expand Down
2 changes: 1 addition & 1 deletion findbugs/etc/MANIFEST-findbugs.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: edu.umd.cs.findbugs.LaunchAppropriateUI
Class-Path: bcel-6.0-SNAPSHOT.jar dom4j-1.6.1.jar jaxen-1.1.6.jar asm-debug-all-5.0.2.jar jsr305.jar jFormatString.jar commons-lang-2.6.jar
Class-Path: bcel-6.0-SNAPSHOT.jar dom4j-1.6.1.jar jaxen-1.1.6.jar asm-debug-all-6.0-SNAPSHOT.jar jsr305.jar jFormatString.jar commons-lang-2.6.jar
6 changes: 3 additions & 3 deletions findbugs/etc/MANIFEST-findbugsGUI.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: edu.umd.cs.findbugs.LaunchAppropriateUI
Class-Path: bcel-6.0-SNAPSHOT.jar dom4j-1.6.1.jar jaxen-1.1.6.jar asm-debug-all-5.0.2.jar jsr305.jar jFormatString.jar commons-lang-2.6.jar plastic.jar
Manifest-Version: 1.0
Main-Class: edu.umd.cs.findbugs.LaunchAppropriateUI
Class-Path: bcel-6.0-SNAPSHOT.jar dom4j-1.6.1.jar jaxen-1.1.6.jar asm-debug-all-6.0-SNAPSHOT.jar jsr305.jar jFormatString.jar commons-lang-2.6.jar plastic.jar
Binary file removed findbugs/lib/asm-debug-all-5.0.2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion findbugs/runMaven
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
mvn install:install-file -Dfile=lib/bcel-6.0-SNAPSHOT.jar -DgroupId=com.google.code.findbugs -DartifactId=bcel -Dversion=6.0-SNAPSHOT -Dpackaging=jar
mvn install:install-file -Dfile=lib/asm-debug-all-5.0.2.jar -DgroupId=org.ow2.asm -DartifactId=asm-debug-all -Dversion=5.0.2 -Dpackaging=jar
mvn install:install-file -Dfile=lib/asm-debug-all-6.0-SNAPSHOT.jar -DgroupId=org.ow2.asm -DartifactId=asm-debug-all -Dversion=6.0-SNAPSHOT -Dpackaging=jar
mvn clean
mvn package
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
*/
public class FindBugsASM {

public static final int ASM_VERSION = Opcodes.ASM5;
public static final int ASM_VERSION = Opcodes.ASM6;

}

0 comments on commit 2e2c4ca

Please sign in to comment.