aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness
diff options
context:
space:
mode:
authorwisberg <wisberg>2004-10-06 10:38:42 +0000
committerwisberg <wisberg>2004-10-06 10:38:42 +0000
commit31169e73375b12f02dd94c1372464e2724035880 (patch)
tree9aa1fc6102699c2f83bb15a75edbda5823803414 /tests/harness
parent547fc19177cc6841388d3ed1dec4cd9473512ef5 (diff)
downloadaspectj-31169e73375b12f02dd94c1372464e2724035880.tar.gz
aspectj-31169e73375b12f02dd94c1372464e2724035880.zip
aspectpath weave tests - disabled pending weaveinfo suppression
Diffstat (limited to 'tests/harness')
-rw-r--r--tests/harness/aspectpath/A.java6
-rw-r--r--tests/harness/aspectpath/Main.java8
2 files changed, 14 insertions, 0 deletions
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