diff options
author | wisberg <wisberg> | 2002-12-16 18:51:06 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-16 18:51:06 +0000 |
commit | 144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch) | |
tree | b12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/errors/MultipleIntros.java | |
parent | fafae443719b26159ab2d7dac1c9b46b5e00b671 (diff) | |
download | aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip |
initial version
Diffstat (limited to 'tests/errors/MultipleIntros.java')
-rw-r--r-- | tests/errors/MultipleIntros.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/errors/MultipleIntros.java b/tests/errors/MultipleIntros.java new file mode 100644 index 000000000..1dc1f330d --- /dev/null +++ b/tests/errors/MultipleIntros.java @@ -0,0 +1,32 @@ +public class MultipleIntros { + public static void main(String[] args) { new C().publicM(); } +} + +class C { + private void privateM() {} + public void publicM() { System.out.println("from C"); } + + private int privateF; + public int publicF; +} + + +aspect A { + private int C.privateF; // should be okay + public int C.publicF; //ERROR conflicts with existing field + + private int C.privateFA; + private int C.privateFA; //ERROR conflicts with the above + + private void C.privateM() {} // should be okay + public void C.publicM() { System.out.println("from A"); } //ERROR conflicts with existing method +} + +aspect AO { + static aspect AI1 { + private int C.privateFA; + } + static aspect AI2 { + private int C.privateFA; //ERROR conflicts with field from AI1 + } +} |