--- /dev/null
+import org.aspectj.lang.annotation.*;
+
+public @Aspect class Bug {
+ @Pointcut("args(i) && if() && within(Foo)")
+ public static boolean pc(int i) {
+ return i < 0;
+ }
+
+ @Before("pc(*)")
+ public void advice() { System.out.println("advice running");}
+
+ public static void main(String []argv) {
+ new Foo().trigger(-1);
+ new Foo().trigger(+1);
+ }
+}
+
+class Foo {
+ public void trigger(int i) {}
+}
+
runTest("dec atanno and decp");
}
- // public void testStarInAnnoStyle_pr209951() { runTest("asterisk in at aj pointcut"); }
public void testMissingMarkers_pr197720() {
runTest("missing markers on inherited annotated method");
}
</compile>
</ajc-test>
- <ajc-test dir="bugs162/pr209051" title="asterisk in at aj pointcut">
- <compile options="-1.5" files="Bug.java"/>
- <run class="Bug">
- <stdout>
- <line text="x"/>
- </stdout>
- </run>
- </ajc-test>
<ajc-test dir="bugs162/pr197720" title="missing markers on inherited annotated method">
<compile files="C1.java C2.java C3.java MyAnn.java MyAnnAspect.java" options="-1.5 -showWeaveInfo">