summaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr111915.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs150/pr111915.java b/tests/bugs150/pr111915.java
new file mode 100644
index 000000000..f0ca3abae
--- /dev/null
+++ b/tests/bugs150/pr111915.java
@@ -0,0 +1,17 @@
+import java.io.*;
+
+class SomeClass {
+ public void doSomething() { }
+}
+
+aspect DoesntCompile {
+
+ declare parents : SomeClass implements Serializable;
+
+ pointcut doSomething(SomeClass someClass) :
+ execution(void SomeClass.doSomething()) &&
+ this(someClass);
+
+ void around(Serializable myWorld) : doSomething(myWorld) { }
+
+} \ No newline at end of file