From 6de5ccc14f5dbebd697204b6d8109a48457fcd40 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 24 May 2004 15:58:44 +0000 Subject: [PATCH] Patch now includes the bcel fix for 62631. Also changed the bcel-builder build.xml to construct a bcel-src.zip that matches the bcel.jar - to ease debugging. --- bcel-builder/build.xml | 23 +++++++++++++++++------ bcel-builder/patch.txt | 27 +++++++++++++++++++-------- bcel-builder/readme.html | 25 +++++++++++++++++-------- 3 files changed, 53 insertions(+), 22 deletions(-) diff --git a/bcel-builder/build.xml b/bcel-builder/build.xml index 98aebeeb8..998ee5f75 100644 --- a/bcel-builder/build.xml +++ b/bcel-builder/build.xml @@ -1,7 +1,7 @@ - + @@ -12,17 +12,27 @@ + + + + + + + + + + - - - - - + + + + + @@ -32,6 +42,7 @@ + diff --git a/bcel-builder/patch.txt b/bcel-builder/patch.txt index f1d7b3417..9f07195a7 100644 --- a/bcel-builder/patch.txt +++ b/bcel-builder/patch.txt @@ -1,6 +1,6 @@ diff -N -a -u -r -b bcel-5.1/build.xml bcel/build.xml ---- bcel-5.1/build.xml 2003-04-25 09:06:14.000000000 -0700 -+++ bcel/build.xml 2004-01-29 04:37:15.593750000 -0800 +--- bcel-5.1/build.xml 2003-04-25 09:06:14.000000000 +0100 ++++ bcel/build.xml 2004-05-24 14:05:28.265625000 +0100 @@ -65,7 +65,7 @@ @@ -11,15 +11,15 @@ diff -N -a -u -r -b bcel-5.1/build.xml bcel/build.xml basedir="${build.dest}" manifest="${basedir}/manifest.txt" diff -N -a -u -r -b bcel-5.1/manifest.txt bcel/manifest.txt ---- bcel-5.1/manifest.txt 1969-12-31 16:00:00.000000000 -0800 -+++ bcel/manifest.txt 2004-01-29 04:37:15.609375000 -0800 +--- bcel-5.1/manifest.txt 1970-01-01 00:00:00.000000000 +0000 ++++ bcel/manifest.txt 2004-05-24 14:05:28.328125000 +0100 @@ -0,0 +1,3 @@ +Created-By: Jakarta BCEL 5.1 +Manifest-Version: 1.0 +Main-Class: listclass diff -N -a -u -r -b bcel-5.1/src/java/org/apache/bcel/generic/Instruction.java bcel/src/java/org/apache/bcel/generic/Instruction.java ---- bcel-5.1/src/java/org/apache/bcel/generic/Instruction.java 2003-04-25 09:06:16.000000000 -0700 -+++ bcel/src/java/org/apache/bcel/generic/Instruction.java 2004-01-29 04:37:15.640625000 -0800 +--- bcel-5.1/src/java/org/apache/bcel/generic/Instruction.java 2003-04-25 09:06:16.000000000 +0100 ++++ bcel/src/java/org/apache/bcel/generic/Instruction.java 2004-05-24 14:38:31.062500000 +0100 @@ -190,26 +190,223 @@ Class clazz; @@ -256,9 +256,20 @@ diff -N -a -u -r -b bcel-5.1/src/java/org/apache/bcel/generic/Instruction.java b return obj; } +diff -N -a -u -r -b bcel-5.1/src/java/org/apache/bcel/generic/LDC_W.java bcel/src/java/org/apache/bcel/generic/LDC_W.java +--- bcel-5.1/src/java/org/apache/bcel/generic/LDC_W.java 2003-04-25 09:06:16.000000000 +0100 ++++ bcel/src/java/org/apache/bcel/generic/LDC_W.java 2004-05-24 14:38:31.359375000 +0100 +@@ -83,6 +83,6 @@ + { + setIndex(bytes.readUnsignedShort()); + // Override just in case it has been changed +- opcode = org.apache.bcel.Constants.LDC_W; ++ // opcode = org.apache.bcel.Constants.LDC_W; + } + } diff -N -a -u -r -b bcel-5.1/src/java/org/apache/bcel/generic/MethodGen.java bcel/src/java/org/apache/bcel/generic/MethodGen.java ---- bcel-5.1/src/java/org/apache/bcel/generic/MethodGen.java 2003-04-25 09:06:16.000000000 -0700 -+++ bcel/src/java/org/apache/bcel/generic/MethodGen.java 2004-01-29 04:39:47.265625000 -0800 +--- bcel-5.1/src/java/org/apache/bcel/generic/MethodGen.java 2003-04-25 09:06:16.000000000 +0100 ++++ bcel/src/java/org/apache/bcel/generic/MethodGen.java 2004-05-24 14:38:30.343750000 +0100 @@ -133,9 +133,9 @@ /* Add local variables, namely the implicit `this' and the arguments diff --git a/bcel-builder/readme.html b/bcel-builder/readme.html index a0d20b60a..27d75c0f2 100644 --- a/bcel-builder/readme.html +++ b/bcel-builder/readme.html @@ -34,28 +34,37 @@ to know some more ant targets. But before anything, get that

There are five top-level ant targets apart from the usual "clean":

    -
  • ant extractAndJar -- this is just the composition of the extract - and jar targets, and is the default. It extracts the source from bcel-5.1-src.zip, - patches it, compiles the patched version into a jar and drops the new jar, - bcel.jar, into the project root. This is the default task, mainly used +
  • ant extractAndJar -- this is just the composition of the extract, + jar and srcjar targets, and is the default. It extracts the source from bcel-5.1-src.zip, + patches it, compiles the patched version into a jar and drops the new archives: + bcel.jar and bcel-src.zip, into the project root. This is the default task, mainly used to sanity check the building and make sure we're generating something. - The bcel.jar this generates should be the same as that in ..\lib\bcel\bcel.jar. + The bcel.jar and bcel-src.zip generated should be the same as that in ..\lib\bcel\.
  • ant extract -- this extracts the source from bcel-5.1-src.zip, patches it, and copies the patched source into the project src directory, there to be visible by eclipse for people to do development on it. + For the patch file to be applied you need to have a patch.exe on your path, + this bcel building process was tested with the version from cygwin.
  • ant jar -- this copies the edited source from the project source directory and jars it up into bcel.jar, there to be tested.
  • -
  • ant push -- this pushes the new bcel.jar into ..\lib\bcel\bcel.jar, - ready to be used by the greater compiler.
  • +
  • ant srcjar -- this copies the edited source from the project source + directory and jars up the source code into bcel-src.zip. +
  • + +
  • ant push -- this pushes the new bcel.jar and bcel-src.zip into ..\lib\bcel\. + - ready to be used by the greater compiler.
  • ant diff -- this creates the patch.txt file, composed of the differences - between the project src directory and the original bcel-5.1 source.
  • + between the project src directory and the original bcel-5.1 source. + For the patch file to be built successfully you need to have a diff.exe on your path, + this bcel building process was tested with the version from cygwin. +

All of the tasks are destructive, so don't do "ant extract", for example, -- 2.39.5