summaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr124999.aj
blob: 42ae02f15e422f917d2048f73a177ab328edfe1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
abstract aspect GenericInheritedMethod<T> {

   protected  T getSomething() {
       return null;
   }

}


aspect pr124999 extends GenericInheritedMethod<Integer> {

   // Runtime Error
   void around() : execution(void someMethod()) {
       System.out.println(getSomething());
   }

   public static void main(String[] args) {
     new C().someMethod();
   }
   

}


class C {
   public void someMethod() { }
}