1 2 3 4 5 6 7 8 9
// to be LTW with BasicProgram1 import org.aspectj.lang.annotation.*; public aspect LockAspect1 { @SuppressAjWarnings("adviceDidNotMatch") before(): lock() { System.err.println("Lock advice running at "+thisJoinPoint.getSourceLocation()); } }