Skip to content

Commit

Permalink
Remove BCEL files from 'lib' module
Browse files Browse the repository at this point in the history
Both bcel.jar and bcel-verifier.jar seem to be obsolete.

Possible next step: Remove bcel-builder/verifier-src.

Signed-off-by: Alexander Kriegisch <[email protected]>
  • Loading branch information
kriegaex committed Mar 15, 2024
1 parent 2f72bf0 commit 0c9b1a8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
Binary file removed lib/bcel/bcel-src.zip
Binary file not shown.
Binary file removed lib/bcel/bcel-verifier-src.zip
Binary file not shown.
Binary file removed lib/bcel/bcel-verifier.jar
Binary file not shown.
Binary file removed lib/bcel/bcel.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ public abstract class AjcTestCase extends TestCase {
public static final String DEFAULT_CLASSPATH_ENTRIES =
DEFAULT_FULL_LTW_CLASSPATH_ENTRIES
+ Ajc.outputFolders("bridge", "util", "loadtime", "weaver", "asm", "runtime", "org.aspectj.matcher", "bcel-builder")
+ pathSeparator + ".." + separator + "lib" + separator + "bcel" + separator + "bcel.jar"
+ pathSeparator + ".." + separator + "lib" + separator + "bcel" + separator + "bcel-verifier.jar"
+ pathSeparator + CLASSPATH_JDT_CORE
+ pathSeparator + CLASSPATH_ASM
+ pathSeparator + CLASSPATH_ASM_COMMONS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@

<ajc-test dir="java5/reflection" title="pointcut parsing with ajc compiled pointcut references">
<compile files="PointcutLibrary.aj,ReflectOnAjcCompiledPointcuts.java" options="-1.5"/>
<run class="ReflectOnAjcCompiledPointcuts" classpath="../lib/bcel/bcel.jar"/>
<run class="ReflectOnAjcCompiledPointcuts"/>
</ajc-test>

<ajc-test dir="java5/reflection" title="reflection on itds">
<compile files="InterTypeDeclarations.aj,ReflectOnCodeStyleITDs.java" options="-1.5 -Xlint:ignore -makeAjReflectable"/>
<run class="ReflectOnCodeStyleITDs" classpath="../lib/bcel/bcel.jar">
<run class="ReflectOnCodeStyleITDs">
<stdout>
<line text="public C.new(int, int, int)"/>
<line text="C.new(int, int)"/>
Expand Down Expand Up @@ -400,7 +400,7 @@

<ajc-test dir="java5/reflection" title="reflection on @DeclareParents">
<compile files="AtAspectJDeclareParents.aj,ReflectOnAtAspectJDeclareParents.java" options="-1.5 -Xlint:ignore"/>
<run class="ReflectOnAtAspectJDeclareParents" classpath="../lib/bcel/bcel.jar">
<run class="ReflectOnAtAspectJDeclareParents">
<stdout>
<line text="declare parents : C implements I"/>
<line text="public int I.getX()"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<ajc-test dir="java5/ataspectj/annotationGen" title="runtime pointcut resolution referencing compiled pointcuts">
<compile files="PCLib.aj,RuntimePointcuts.java" options="-1.5">
</compile>
<run class="RuntimePointcuts" classpath=".,../lib/bcel/bcel.jar" ltw=""/>
<run class="RuntimePointcuts"/>
</ajc-test>

<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for decp">
Expand Down
12 changes: 8 additions & 4 deletions weaver/src/test/java/org/aspectj/weaver/bcel/ZipTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,27 @@ public void testSmallWithAspectsNoWeave() throws IOException {

public void testBig() throws IOException {
System.out.println("could take 4 seconds...");
zipTest("../lib/bcel/bcel.jar", null);
// Weave a big JAR file. This is unrelated to Ant, i.e. the JAR can be replaced by another one for this test.
zipTest("../lib/ant/lib/ant.jar", null);
}

public void testBigWithEasyNoTrace() throws IOException {
System.out.println("could take 4 seconds...");
zipTest("../lib/bcel/bcel.jar", WeaverTestCase.TESTDATA_PATH + "/megatrace0easy.jar");
// Weave a big JAR file. This is unrelated to Ant, i.e. the JAR can be replaced by another one for this test.
zipTest("../lib/ant/lib/ant.jar", WeaverTestCase.TESTDATA_PATH + "/megatrace0easy.jar");
}

// this is something we test every now and again.
public void xtestBigWithHardNoTrace() throws IOException {
System.out.println("could take 24 seconds...");
zipTest("../lib/bcel/bcel.jar", WeaverTestCase.TESTDATA_PATH + "/megatrace0hard.jar");
// Weave a big JAR file. This is unrelated to Ant, i.e. the JAR can be replaced by another one for this test.
zipTest("../lib/ant/lib/ant.jar", WeaverTestCase.TESTDATA_PATH + "/megatrace0hard.jar");
}

public void xtestBigWithAspects() throws IOException {
System.out.println("could take 40 seconds...");
zipTest("../lib/bcel/bcel.jar", WeaverTestCase.TESTDATA_PATH + "/megatrace.jar");
// Weave a big JAR file. This is unrelated to Ant, i.e. the JAR can be replaced by another one for this test.
zipTest("../lib/ant/lib/ant.jar", WeaverTestCase.TESTDATA_PATH + "/megatrace.jar");
}

}

0 comments on commit 0c9b1a8

Please sign in to comment.