aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr111915.java
blob: f0ca3abae9392a7af53bfc9d8dbe2589a556954a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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) { }
    
}