From 84542fbb09189dbce642123ef4f41a5c77416cb1 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 18 Aug 2005 07:25:35 +0000 Subject: tests for Fix 106736 - permitting classes dir as aspect URL (also permitting .zip files) --- .../testdata/WeavingURLClassLoaderTest/build.xml | 65 +++++++++++++++++++++ .../WeavingURLClassLoaderTest/builtLibs/aspect.jar | Bin 0 -> 1379 bytes .../WeavingURLClassLoaderTest/builtLibs/aspect.zip | Bin 0 -> 1379 bytes .../builtLibs/classes/packag/Aspect.class | Bin 0 -> 3874 bytes .../WeavingURLClassLoaderTest/builtLibs/main.zip | Bin 0 -> 698 bytes .../WeavingURLClassLoaderTest/packag/Aspect.aj | 7 +++ .../WeavingURLClassLoaderTest/packag/Main.java | 7 +++ 7 files changed, 79 insertions(+) create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/build.xml create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.jar create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.zip create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/builtLibs/classes/packag/Aspect.class create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/builtLibs/main.zip create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/packag/Aspect.aj create mode 100644 weaver/testdata/WeavingURLClassLoaderTest/packag/Main.java (limited to 'weaver/testdata') diff --git a/weaver/testdata/WeavingURLClassLoaderTest/build.xml b/weaver/testdata/WeavingURLClassLoaderTest/build.xml new file mode 100644 index 000000000..753f99328 --- /dev/null +++ b/weaver/testdata/WeavingURLClassLoaderTest/build.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.jar b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.jar new file mode 100644 index 000000000..77469d6f0 Binary files /dev/null and b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.jar differ diff --git a/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.zip b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.zip new file mode 100644 index 000000000..a5aebe491 Binary files /dev/null and b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/aspect.zip differ diff --git a/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/classes/packag/Aspect.class b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/classes/packag/Aspect.class new file mode 100644 index 000000000..57b29b005 Binary files /dev/null and b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/classes/packag/Aspect.class differ diff --git a/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/main.zip b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/main.zip new file mode 100644 index 000000000..e0204709e Binary files /dev/null and b/weaver/testdata/WeavingURLClassLoaderTest/builtLibs/main.zip differ diff --git a/weaver/testdata/WeavingURLClassLoaderTest/packag/Aspect.aj b/weaver/testdata/WeavingURLClassLoaderTest/packag/Aspect.aj new file mode 100644 index 000000000..02eb2b822 --- /dev/null +++ b/weaver/testdata/WeavingURLClassLoaderTest/packag/Aspect.aj @@ -0,0 +1,7 @@ +package packag; + +public aspect Aspect { + void around() : execution(public static void *.main(String[])) { + // don't proceed, avoid exception + } +} diff --git a/weaver/testdata/WeavingURLClassLoaderTest/packag/Main.java b/weaver/testdata/WeavingURLClassLoaderTest/packag/Main.java new file mode 100644 index 000000000..cd0452056 --- /dev/null +++ b/weaver/testdata/WeavingURLClassLoaderTest/packag/Main.java @@ -0,0 +1,7 @@ +package packag; + +public class Main { + public static void main(String[] args) { + throw new Error("around advice should have applied here"); + } +} \ No newline at end of file -- cgit v1.2.3