You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ParsingAndMatching2.java 352B

123456789101112131415161718
  1. // unlock and static context
  2. public aspect ParsingAndMatching2 {
  3. before(): unlock() {
  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. }