mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
15 lines
437 B
Java
15 lines
437 B
Java
|
public class PR320 {
|
||
|
public static void main(String[] args) {
|
||
|
//org.aspectj.testing.Tester.check(false, "Shouldn't have compiled!");
|
||
|
org.aspectj.testing.Tester.check(true, "OK to compile by 08b1!");
|
||
|
}
|
||
|
}
|
||
|
class Product1 {}
|
||
|
aspect Product1Aspect pertarget(target(Product1)){
|
||
|
|
||
|
pointcut instance(Product1 p): target(p);
|
||
|
before(Product1 p): instance(p) {
|
||
|
System.out.println("Im am instance of product1");
|
||
|
}
|
||
|
}
|