diff options
author | wisberg <wisberg> | 2002-12-16 17:58:19 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-16 17:58:19 +0000 |
commit | d842c4f1139629c1f062b74ba818d233b2c31043 (patch) | |
tree | 842d3871620bc0eb60edcd95e55804d67e0f61fa /org.aspectj.ajdt.core/testdata/src1/Parents.java | |
parent | 3ce247199704eae6b2c92c6e38c69584e3250c52 (diff) | |
download | aspectj-d842c4f1139629c1f062b74ba818d233b2c31043.tar.gz aspectj-d842c4f1139629c1f062b74ba818d233b2c31043.zip |
initial version
Diffstat (limited to 'org.aspectj.ajdt.core/testdata/src1/Parents.java')
-rw-r--r-- | org.aspectj.ajdt.core/testdata/src1/Parents.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/src1/Parents.java b/org.aspectj.ajdt.core/testdata/src1/Parents.java new file mode 100644 index 000000000..17f071927 --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/Parents.java @@ -0,0 +1,40 @@ +public class Parents { + public static void main(String[] args) { + A.I i = new C1(); + i.m(); + + C2 c2 = new C2(); + c2.m1(); + + A.C3 c3 = (A.C3)c2; + + C4 c4 = new C4(); + c4.m4(); + } +} + +class C1 { + public void m() { System.out.println("m"); } +} + +class C2 {} + +class C4 {} + +aspect A { + static class C3 { + public void m1() { System.out.println("from C3"); } + } + + interface I { + void m(); + } + + declare parents: (C1 && !C2) implements I; + declare parents: C2 extends C3; + + interface I4 {} + public void I4.m4() { System.out.println("I.m4"); } + + declare parents: C4 implements I4; +}
\ No newline at end of file |