From 31169e73375b12f02dd94c1372464e2724035880 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 6 Oct 2004 10:38:42 +0000 Subject: [PATCH] aspectpath weave tests - disabled pending weaveinfo suppression --- tests/ajcHarnessTests.xml | 22 ++++++++++++++++++++++ tests/harness/aspectpath/A.java | 6 ++++++ tests/harness/aspectpath/Main.java | 8 ++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/harness/aspectpath/A.java create mode 100644 tests/harness/aspectpath/Main.java diff --git a/tests/ajcHarnessTests.xml b/tests/ajcHarnessTests.xml index 56c098a38..76cef4c50 100644 --- a/tests/ajcHarnessTests.xml +++ b/tests/ajcHarnessTests.xml @@ -461,6 +461,28 @@ fork="true" vmargs="-DPASS=true,-Dname=value"/> + + + + + + + + + + + diff --git a/tests/harness/aspectpath/A.java b/tests/harness/aspectpath/A.java new file mode 100644 index 000000000..267b2679f --- /dev/null +++ b/tests/harness/aspectpath/A.java @@ -0,0 +1,6 @@ + +aspect A { + before() : execution(void main(String[])) { + System.setProperty("A.before", "true"); + } +} \ No newline at end of file diff --git a/tests/harness/aspectpath/Main.java b/tests/harness/aspectpath/Main.java new file mode 100644 index 000000000..15b5d742e --- /dev/null +++ b/tests/harness/aspectpath/Main.java @@ -0,0 +1,8 @@ + +public class Main { + public static void main(String[] args) { + if (!Boolean.getBoolean("A.before")) { + throw new Error("property A.before not set by aspect A.java"); + } + } +} \ No newline at end of file -- 2.39.5