diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-30 15:35:17 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-30 15:35:17 +0000 |
commit | f5e2b13f054d00a6487c6c3b7a1fb53cc7b53743 (patch) | |
tree | cccc729e066adceda4b0d6ea978167f9049b5c4b /dev-java/bcel/files | |
parent | closing bug #76115 (Manifest recommit) (diff) | |
download | gentoo-2-f5e2b13f054d00a6487c6c3b7a1fb53cc7b53743.tar.gz gentoo-2-f5e2b13f054d00a6487c6c3b7a1fb53cc7b53743.tar.bz2 gentoo-2-f5e2b13f054d00a6487c6c3b7a1fb53cc7b53743.zip |
Added 1.5 support. Fixes #73319.
Diffstat (limited to 'dev-java/bcel/files')
-rw-r--r-- | dev-java/bcel/files/bcel-5.1-gentoo-buildxml.diff | 39 | ||||
-rw-r--r-- | dev-java/bcel/files/bcel-5.1-gentoo-src.diff | 51 |
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/bcel/files/bcel-5.1-gentoo-buildxml.diff b/dev-java/bcel/files/bcel-5.1-gentoo-buildxml.diff new file mode 100644 index 000000000000..f06403592ea3 --- /dev/null +++ b/dev-java/bcel/files/bcel-5.1-gentoo-buildxml.diff @@ -0,0 +1,39 @@ +--- build.xml.orig 2004-12-19 18:15:47.840287952 +0100 ++++ build.xml 2004-12-19 18:19:13.831972456 +0100 +@@ -58,24 +58,32 @@ + <!-- Compile the sources --> + <target name="compile" depends="init"> + <mkdir dir="${build.dest}"/> +- <javac srcdir="${src.dir}" destdir="${build.dest}" classpath="${class.path}" debug="true"/> ++ <javac srcdir="${src.dir}" ++ destdir="${build.dest}" ++ classpath="${class.path}" ++ debug="off" ++ target="1.4" ++ source="1.4"> ++ <classpath> ++ <pathelement path="${regexp.jar}"/> ++ </classpath> ++ </javac> + </target> + + <!-- Just an alias --> + <target name="build" depends="compile"/> + + <!-- Jar the library --> +- <target name="jar" depends="examples"> ++ <target name="jar" depends="compile"> + <jar jarfile="${build.dir}/${name}.jar" + basedir="${build.dest}" +- manifest="${basedir}/manifest.txt" + includes="org/**,listclass.class" + /> + </target> + + <!-- Compile the examples --> + <target name="examples" depends="compile"> +- <javac srcdir="${examples.dir}" destdir="${build.dest}" classpath="${class.path}" /> ++ <javac srcdir="${examples.dir}" destdir="${build.dest}" classpath="${class.path}" target="1.4" source="1.4"/> + </target> + + <!-- Creates the API documentation --> diff --git a/dev-java/bcel/files/bcel-5.1-gentoo-src.diff b/dev-java/bcel/files/bcel-5.1-gentoo-src.diff new file mode 100644 index 000000000000..1060fb2f55b8 --- /dev/null +++ b/dev-java/bcel/files/bcel-5.1-gentoo-src.diff @@ -0,0 +1,51 @@ +diff -uprN src.orig/java/org/apache/bcel/verifier/statics/Pass2Verifier.java src/java/org/apache/bcel/verifier/statics/Pass2Verifier.java +--- src.orig/java/org/apache/bcel/verifier/statics/Pass2Verifier.java 2004-12-19 18:28:47.428772488 +0100 ++++ src/java/org/apache/bcel/verifier/statics/Pass2Verifier.java 2004-12-19 18:39:36.804052440 +0100 +@@ -345,7 +345,7 @@ public final class Pass2Verifier extends + + for (int i=0; i<atts.length; i++){ + if ((! (atts[i] instanceof SourceFile)) && +- (! (atts[i] instanceof Deprecated)) && ++ (! (atts[i] instanceof org.apache.bcel.classfile.Deprecated)) && + (! (atts[i] instanceof InnerClasses)) && + (! (atts[i] instanceof Synthetic))){ + addMessage("Attribute '"+tostring(atts[i])+"' as an attribute of the ClassFile structure '"+tostring(obj)+"' is unknown and will therefore be ignored."); +@@ -519,7 +519,7 @@ public final class Pass2Verifier extends + for (int i=0; i<atts.length; i++){ + if ((! (atts[i] instanceof ConstantValue)) && + (! (atts[i] instanceof Synthetic)) && +- (! (atts[i] instanceof Deprecated))){ ++ (! (atts[i] instanceof org.apache.bcel.classfile.Deprecated))){ + addMessage("Attribute '"+tostring(atts[i])+"' as an attribute of Field '"+tostring(obj)+"' is unknown and will therefore be ignored."); + } + if (! (atts[i] instanceof ConstantValue)){ +@@ -660,7 +660,7 @@ public final class Pass2Verifier extends + if ((! (atts[i] instanceof Code)) && + (! (atts[i] instanceof ExceptionTable)) && + (! (atts[i] instanceof Synthetic)) && +- (! (atts[i] instanceof Deprecated))){ ++ (! (atts[i] instanceof org.apache.bcel.classfile.Deprecated))){ + addMessage("Attribute '"+tostring(atts[i])+"' as an attribute of Method '"+tostring(obj)+"' is unknown and will therefore be ignored."); + } + if ((! (atts[i] instanceof Code)) && +@@ -702,7 +702,7 @@ public final class Pass2Verifier extends + addMessage("SourceFile attribute '"+tostring(obj)+"' has a funny name: remember not to confuse certain parsers working on javap's output. Also, this name ('"+sourcefilename+"') is considered an unqualified (simple) file name only."); + } + } +- public void visitDeprecated(Deprecated obj){//vmspec2 4.7.10 ++ public void visitDeprecated(org.apache.bcel.classfile.Deprecated obj){//vmspec2 4.7.10 + checkIndex(obj, obj.getNameIndex(), CONST_Utf8); + + String name = ((ConstantUtf8) cp.getConstant(obj.getNameIndex())).getBytes(); +diff -uprN src.orig/java/org/apache/bcel/verifier/statics/StringRepresentation.java src/java/org/apache/bcel/verifier/statics/StringRepresentation.java +--- src.orig/java/org/apache/bcel/verifier/statics/StringRepresentation.java 2004-12-19 18:28:47.429772336 +0100 ++++ src/java/org/apache/bcel/verifier/statics/StringRepresentation.java 2004-12-19 18:38:52.087850336 +0100 +@@ -172,7 +172,7 @@ public class StringRepresentation extend + public void visitConstantValue(ConstantValue obj){ + tostring = toString(obj); + } +- public void visitDeprecated(Deprecated obj){ ++ public void visitDeprecated(org.apache.bcel.classfile.Deprecated obj){ + tostring = toString(obj); + } + public void visitExceptionTable(ExceptionTable obj){ |