You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr111915.java 360B

1234567891011121314151617
  1. import java.io.*;
  2. class SomeClass {
  3. public void doSomething() { }
  4. }
  5. aspect DoesntCompile {
  6. declare parents : SomeClass implements Serializable;
  7. pointcut doSomething(SomeClass someClass) :
  8. execution(void SomeClass.doSomething()) &&
  9. this(someClass);
  10. void around(Serializable myWorld) : doSomething(myWorld) { }
  11. }