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.

Four.java 389B

123456789101112131415161718192021
  1. // what about printing the join point?
  2. public class Four {
  3. public static void main(String []argv) {
  4. Integer[] Is = new Integer[5];
  5. Foo f = new Foo(6);
  6. }
  7. }
  8. aspect X {
  9. before(): call(Integer[].new(int)) {
  10. System.err.println("tjp1=>"+thisJoinPoint);
  11. }
  12. before(): call(Foo.new(int)) {
  13. System.err.println("tjp2=>"+thisJoinPoint);
  14. }
  15. }
  16. class Foo {
  17. Foo(int i) {
  18. }
  19. }