diff options
Diffstat (limited to 'tests/bugs1612')
-rw-r--r-- | tests/bugs1612/pr343051/Azpect.java | 13 | ||||
-rw-r--r-- | tests/bugs1612/pr343051/Code.java | 7 | ||||
-rw-r--r-- | tests/bugs1612/pr343051/Code2.java | 11 |
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 { + } +} |