summaryrefslogtreecommitdiffstats
path: root/tests/bugs1612
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1612')
-rw-r--r--tests/bugs1612/pr342323/Azpect.java12
-rw-r--r--tests/bugs1612/pr342323/Bean.java11
-rw-r--r--tests/bugs1612/pr342323/Runner.java14
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/bugs1612/pr342323/Azpect.java b/tests/bugs1612/pr342323/Azpect.java
new file mode 100644
index 000000000..e618f3185
--- /dev/null
+++ b/tests/bugs1612/pr342323/Azpect.java
@@ -0,0 +1,12 @@
+package ppp;
+privileged aspect Azpect {
+ public void Bean.foo() {
+ Runnable r = new Runnable() {
+ public void run() {
+ System.out.println("aspect foo");
+ }
+ };
+ r.run();
+ }
+}
+
diff --git a/tests/bugs1612/pr342323/Bean.java b/tests/bugs1612/pr342323/Bean.java
new file mode 100644
index 000000000..d1ab95730
--- /dev/null
+++ b/tests/bugs1612/pr342323/Bean.java
@@ -0,0 +1,11 @@
+package ppp;
+public class Bean {
+ public void m() {
+ Runnable r = new Runnable() { public void run() { System.out.println("class");}};
+ r.run();
+ }
+ public void n() {
+ Runnable r = new Runnable() { public void run() { System.out.println("class");}};
+ r.run();
+ }
+}
diff --git a/tests/bugs1612/pr342323/Runner.java b/tests/bugs1612/pr342323/Runner.java
new file mode 100644
index 000000000..71a2b974e
--- /dev/null
+++ b/tests/bugs1612/pr342323/Runner.java
@@ -0,0 +1,14 @@
+package ppp;
+public class Runner {
+ public static void main(String[] argv) {
+ new Runner().run();
+ }
+
+ public void run() {
+ Bean c = new Bean();
+ System.out.println("Calling regular method");
+ c.m();
+ System.out.println("Calling itd method");
+ c.foo();
+ }
+}