aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612
diff options
context:
space:
mode:
authoraclement <aclement>2011-04-26 16:11:25 +0000
committeraclement <aclement>2011-04-26 16:11:25 +0000
commit8db64a9d53d8c051b3296b3ccb2c4715463cb4c0 (patch)
tree59a0e7baf7c6f8d41b59bf86a8149aebeff79e13 /tests/bugs1612
parent4341109730bdb423b0eecc5b01327febc4f0b230 (diff)
downloadaspectj-8db64a9d53d8c051b3296b3ccb2c4715463cb4c0.tar.gz
aspectj-8db64a9d53d8c051b3296b3ccb2c4715463cb4c0.zip
343051
Diffstat (limited to 'tests/bugs1612')
-rw-r--r--tests/bugs1612/pr343051/Azpect.java13
-rw-r--r--tests/bugs1612/pr343051/Code.java7
-rw-r--r--tests/bugs1612/pr343051/Code2.java11
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs1612/pr343051/Azpect.java b/tests/bugs1612/pr343051/Azpect.java
new file mode 100644
index 000000000..e02218657
--- /dev/null
+++ b/tests/bugs1612/pr343051/Azpect.java
@@ -0,0 +1,13 @@
+package q;
+import p.*;
+
+privileged aspect X {
+ public void Code2.Inner.bar() {
+ Runnable r = new Runnable() {
+ public void run() {
+ System.out.println("abc");
+ }
+ };
+ r.run();
+ }
+}
diff --git a/tests/bugs1612/pr343051/Code.java b/tests/bugs1612/pr343051/Code.java
new file mode 100644
index 000000000..12f68dc54
--- /dev/null
+++ b/tests/bugs1612/pr343051/Code.java
@@ -0,0 +1,7 @@
+package p;
+
+public class Code {
+ public static void main(String []argv) {
+ new Code2().foo();
+ }
+}
diff --git a/tests/bugs1612/pr343051/Code2.java b/tests/bugs1612/pr343051/Code2.java
new file mode 100644
index 000000000..c04bacfee
--- /dev/null
+++ b/tests/bugs1612/pr343051/Code2.java
@@ -0,0 +1,11 @@
+package p;
+
+public class Code2 {
+
+ public void foo() {
+ new Inner().bar();
+ }
+
+ class Inner {
+ }
+}