aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/coverage/Test001.java
blob: f5f43f54d5101cb24f6430a63fb57893aaf5a3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//"@Aspect extending Aspect"

// This ought to be possible, need to see where the 'can not extend' message
// is coming from and see if you can check for attributes at that point.
// not sure what would happen if these pieces were compiled separately - 
// suspect it would be OK if javac is used for class C but not if ajc is used.

import org.aspectj.lang.annotation.*;

abstract aspect B{
  abstract void say();
}

@Aspect
class C extends B{

  void say(){ }

  public static void Main(String[] args){
    C thing = new C();
    thing.say();
  }
}