blob: 14a3d9d8711f674f346b7512ada6de366f8a9475 (
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
28
29
30
31
32
33
34
35
36
37
|
abstract class AbstractAttributeGuiFactory<A,B> {
public A getThis() {
return null;
}
public B getThat() {
return null;
}
}
class ColorAttributeGuiFactory extends AbstractAttributeGuiFactory<C1,C2> {}
class C1 {}
class C2 {}
aspect ForceParameterization {
before() : call(C1 *(..)) || call(C2 *(..)) {
System.out.println("method returning C1 or C2");
}
}
public class Pr112880 {
public static void main(String[] args) {
ColorAttributeGuiFactory f = new ColorAttributeGuiFactory();
f.getThis();
f.getThat();
}
}
|