aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/PR590.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/PR590.java')
-rw-r--r--tests/new/PR590.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/new/PR590.java b/tests/new/PR590.java
new file mode 100644
index 000000000..04ae582d3
--- /dev/null
+++ b/tests/new/PR590.java
@@ -0,0 +1,25 @@
+import org.aspectj.testing.Tester;
+
+public class PR590 {
+ public static void main (String args []) {
+ staticMethod ();
+ new PR590().instanceMethod("bar");
+ }
+
+ public static String staticMethod () {
+ return null;
+ }
+
+ public String instanceMethod(String a) {
+ return "foo";
+ }
+}
+
+aspect A {
+ after () returning (String s):
+ execution(static String PR590.staticMethod()) && if(s == null) { } //ERR
+
+ after () throwing (Error e):
+ execution(static String PR590.staticMethod()) && if(e != null) { } //ERR
+}
+