zrcadlo
https://github.com/eclipse-aspectj/aspectj.git
synchronizováno 2024-08-27 05:54:38 +02:00
15 řádky
362 B
Java
15 řádky
362 B
Java
/**
|
|
* AspectJ should have a rule that binding parameters lexically
|
|
* within a ! is always an error. These test some of the most
|
|
* obvious forms of that.
|
|
*/
|
|
public aspect BindingInNotCf {
|
|
pointcut pc1(Object o): this(o);
|
|
|
|
pointcut pc2(Object o): !this(o); //CE
|
|
|
|
pointcut pc3(Object o): !pc2(o); //CE
|
|
|
|
pointcut pc4(Object o): !!pc1(o); //CE
|
|
}
|