aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR83563_1.java
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-25 20:18:42 +0000
committeraclement <aclement>2005-01-25 20:18:42 +0000
commit1b01255892ef222c14fea25b5db77208f1f6bb13 (patch)
tree6a18243250b6ff16573a1e8c7b46221de825a975 /tests/bugs150/PR83563_1.java
parent159d6bd9422fc8ab300cfb88280d7ef3bf910a95 (diff)
downloadaspectj-1b01255892ef222c14fea25b5db77208f1f6bb13.tar.gz
aspectj-1b01255892ef222c14fea25b5db77208f1f6bb13.zip
Fix for Bug 83563: pertypewithin() handling of inner classes
Diffstat (limited to 'tests/bugs150/PR83563_1.java')
-rw-r--r--tests/bugs150/PR83563_1.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs150/PR83563_1.java b/tests/bugs150/PR83563_1.java
new file mode 100644
index 000000000..834e450fe
--- /dev/null
+++ b/tests/bugs150/PR83563_1.java
@@ -0,0 +1,23 @@
+public class PR83563_1 {
+ public static void main(String[] args) {
+ new NestedTest().run();
+ int c = PertypewithinTest.aspectOf(PR83563_1.class).cnt;
+ if (c!=2)
+ throw new RuntimeException("Expected 2 advice executions: "+c);
+ }
+
+ static class NestedTest implements Runnable {
+ public void run() {
+ System.out.println("Running...");
+ }
+ }
+}
+
+aspect PertypewithinTest pertypewithin(PR83563_1) {
+ public static int cnt = 0;
+
+ before() : execution(* *.*(..)) {
+ cnt++;
+ System.out.println(thisJoinPointStaticPart);
+ }
+}