aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-03-18 22:31:27 +0000
committeracolyer <acolyer>2004-03-18 22:31:27 +0000
commit5795b4afc617d5ed3ce9f9338ff59fe275bd56b0 (patch)
tree2d5ebf427ee685fc0c3d37369b12c28d571d25ad /tests/bugs
parentbd589bc1fad5a97182de39ec47310aef1a288d8b (diff)
downloadaspectj-5795b4afc617d5ed3ce9f9338ff59fe275bd56b0.tar.gz
aspectj-5795b4afc617d5ed3ce9f9338ff59fe275bd56b0.zip
fix for Bugzilla Bug 52928
Private members introduced via an interface are visible to the class
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/VisiblePrivateInterfaceITDs.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs/VisiblePrivateInterfaceITDs.java b/tests/bugs/VisiblePrivateInterfaceITDs.java
new file mode 100644
index 000000000..ce3ed7073
--- /dev/null
+++ b/tests/bugs/VisiblePrivateInterfaceITDs.java
@@ -0,0 +1,24 @@
+// PR 52928
+
+public class VisiblePrivateInterfaceITDs {
+
+ public static void main(String[] args) {
+ VisiblePrivateInterfaceITDs s = new VisiblePrivateInterfaceITDs();
+ s.aMethod();
+ }
+
+ public void aMethod() {
+ // x is introduced by the following aspect as private
+ // so it should not be accessible here
+ System.out.println("I have " + x); // CE 13
+ }
+
+}
+
+aspect SampleAspect {
+ private interface Tag {};
+
+ private int Tag.x = 0;
+
+ declare parents: VisiblePrivateInterfaceITDs implements Tag;
+} \ No newline at end of file