aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr111915.java
diff options
context:
space:
mode:
authoraclement <aclement>2005-10-21 06:56:11 +0000
committeraclement <aclement>2005-10-21 06:56:11 +0000
commit3021284f5d910a406d26a01ce836bbb5f5cd6bfc (patch)
treee8a059eb712f096be5a764b9dc7112b0c55677da /tests/bugs150/pr111915.java
parent6e337a8e27541f3223a5312bd47013f195915be1 (diff)
downloadaspectj-3021284f5d910a406d26a01ce836bbb5f5cd6bfc.tar.gz
aspectj-3021284f5d910a406d26a01ce836bbb5f5cd6bfc.zip
test and fix for pr111915
Diffstat (limited to 'tests/bugs150/pr111915.java')
-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