diff options
author | jhugunin <jhugunin> | 2003-03-10 23:18:56 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-03-10 23:18:56 +0000 |
commit | cd8bd2c7cef6d403d6a60c7f3deb104b2898364b (patch) | |
tree | dbe8d190c2625714e8b05e0c16a25c4aae6c7f1c /org.aspectj.ajdt.core/testdata | |
parent | 7139ac48be452e260c39f5c75ed845b661725cc9 (diff) | |
download | aspectj-cd8bd2c7cef6d403d6a60c7f3deb104b2898364b.tar.gz aspectj-cd8bd2c7cef6d403d6a60c7f3deb104b2898364b.zip |
further work on binary aspects (aspect path) tested correct behavior
for obvious forms of concrete aspects, next need to address abstract
Diffstat (limited to 'org.aspectj.ajdt.core/testdata')
-rw-r--r-- | org.aspectj.ajdt.core/testdata/src1/binary/client/Client.java | 29 | ||||
-rw-r--r-- | org.aspectj.ajdt.core/testdata/src1/binary/lib/ConcreteA.aj | 12 |
2 files changed, 41 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/src1/binary/client/Client.java b/org.aspectj.ajdt.core/testdata/src1/binary/client/Client.java new file mode 100644 index 000000000..181b78628 --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/binary/client/Client.java @@ -0,0 +1,29 @@ +package client; + +import lib.ConcreteA; +import org.aspectj.lang.*; + +public class Client { + public static void main(String[] args) { + C c = new C(); + System.out.println(c.value); + ConcreteA.Marker m = c; + System.out.println(m.value); + try { + new Client(); + } catch (SoftException se) { + System.out.println("se: " + se); + } + } + + + public Client() { + foo(); + } + + private void foo() throws ConcreteA.MyException { + throw new ConcreteA.MyException(); + } +} + +class C implements ConcreteA.Marker { }
\ No newline at end of file diff --git a/org.aspectj.ajdt.core/testdata/src1/binary/lib/ConcreteA.aj b/org.aspectj.ajdt.core/testdata/src1/binary/lib/ConcreteA.aj new file mode 100644 index 000000000..02a09c87d --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/binary/lib/ConcreteA.aj @@ -0,0 +1,12 @@ +package lib;
+
+public aspect ConcreteA {
+ public interface Marker {}
+
+ public String Marker.value = "public";
+ //private String Marker.pValue = "private";
+
+ public static class MyException extends Exception {}
+
+ declare soft: MyException: withincode(new(..));
+}
\ No newline at end of file |