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.

ParsingAndMatching1.java 348B

123456789101112131415161718
  1. // lock and static context
  2. public aspect ParsingAndMatching1 {
  3. before(): lock() {
  4. System.err.println("Advice running at "+thisJoinPoint.getSourceLocation());
  5. }
  6. public static void main(String[] args) {
  7. staticM();
  8. }
  9. public static void staticM() {
  10. synchronized (String.class) {
  11. System.err.println("static method running");
  12. }
  13. }
  14. }