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.

1234567891011121314
  1. public class PR320 {
  2. public static void main(String[] args) {
  3. //org.aspectj.testing.Tester.check(false, "Shouldn't have compiled!");
  4. org.aspectj.testing.Tester.check(true, "OK to compile by 08b1!");
  5. }
  6. }
  7. class Product1 {}
  8. aspect Product1Aspect pertarget(target(Product1)){
  9. pointcut instance(Product1 p): target(p);
  10. before(Product1 p): instance(p) {
  11. System.out.println("Im am instance of product1");
  12. }
  13. }