]> source.dussan.org Git - aspectj.git/commitdiff
209051: moved test to 164
authoraclement <aclement>
Wed, 21 Jan 2009 01:19:36 +0000 (01:19 +0000)
committeraclement <aclement>
Wed, 21 Jan 2009 01:19:36 +0000 (01:19 +0000)
tests/bugs164/pr209051/Bug.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java
tests/src/org/aspectj/systemtest/ajc162/ajc162.xml

diff --git a/tests/bugs164/pr209051/Bug.java b/tests/bugs164/pr209051/Bug.java
new file mode 100644 (file)
index 0000000..ac1bf7b
--- /dev/null
@@ -0,0 +1,21 @@
+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) {}
+}
+
index 0ca91b4ff468d8f35a82c68a20f00d06b2a944e8..82a9185433b8635977eadb4c092a02b1f188eb88 100644 (file)
@@ -87,7 +87,6 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
                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");
        }
index c05528c631d1dc4ea27b01faf3b07e80eedc460a..67d529270e867b4835b6386bb2e7dcd8a2f7807b 100644 (file)
      </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">