summaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr148727
diff options
context:
space:
mode:
authoraclement <aclement>2006-06-28 09:16:01 +0000
committeraclement <aclement>2006-06-28 09:16:01 +0000
commit21e06a69892469bab688d2315e7e034047431082 (patch)
tree2220f50d7955df66d7ee3e5cb0d32ba3eeaeadf9 /tests/bugs152/pr148727
parentb59b036af89c28616efeda9b4cef1043c34337d6 (diff)
downloadaspectj-21e06a69892469bab688d2315e7e034047431082.tar.gz
aspectj-21e06a69892469bab688d2315e7e034047431082.zip
test and fix for 148727 - reverse synthetic changes for aspectOf() and hasAspect()
Diffstat (limited to 'tests/bugs152/pr148727')
-rw-r--r--tests/bugs152/pr148727/Asp.aj2
-rw-r--r--tests/bugs152/pr148727/Client.java7
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/bugs152/pr148727/Asp.aj b/tests/bugs152/pr148727/Asp.aj
new file mode 100644
index 000000000..446fb5849
--- /dev/null
+++ b/tests/bugs152/pr148727/Asp.aj
@@ -0,0 +1,2 @@
+public aspect Asp {
+}
diff --git a/tests/bugs152/pr148727/Client.java b/tests/bugs152/pr148727/Client.java
new file mode 100644
index 000000000..2ced473f4
--- /dev/null
+++ b/tests/bugs152/pr148727/Client.java
@@ -0,0 +1,7 @@
+public class Client {
+ public static void main(String argz[]) {
+ if (!Asp.hasAspect())
+ throw new RuntimeException("ou est le aspect?");
+ System.out.println("Can call aspectOf? "+Asp.aspectOf());
+ }
+}