Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415161718192021222324 |
- package bugs;
-
- public class GenericPerTypeWithin {
- public static void main(String[] args) {
- new C();
- }
- }
-
- class C {
- C() {}
- }
- class B {
- B() {}
- }
-
-
- abstract aspect Singleton<Target> pertypewithin(Target) {
- pointcut creation() : execution(Target+.new()) ;
- pointcut creationOfAnything(): execution(*.new());
- before() : creation() { }
- before() : creationOfAnything() {} // should not match B.new() because of the ptw
- }
-
- aspect A extends Singleton<C> {}
|