]> source.dussan.org Git - aspectj.git/commitdiff
testcase for 144602
authoraclement <aclement>
Wed, 31 May 2006 09:31:45 +0000 (09:31 +0000)
committeraclement <aclement>
Wed, 31 May 2006 09:31:45 +0000 (09:31 +0000)
tests/bugs152/pr144602/MyAspect.aj [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
tests/src/org/aspectj/systemtest/ajc152/ajc152.xml

diff --git a/tests/bugs152/pr144602/MyAspect.aj b/tests/bugs152/pr144602/MyAspect.aj
new file mode 100644 (file)
index 0000000..fb68809
--- /dev/null
@@ -0,0 +1,26 @@
+import org.aspectj.lang.annotation.*;
+
+@Aspect("perthis(call( * SomeClass.someMethod(..)))")
+public class MyAspect {
+
+    @Pointcut("call( * SomeClass.someMethod(..)) && args(j,k, *)")
+    public void pointcut( int j, int k) {}
+
+    @Before("pointcut( j,k)")
+    public void advice( int j, int k ) {  }
+
+  public static void main(String []argv) { new SomeClass().foo();}
+} 
+
+class SomeClass {
+ public void someMethod(int a,int b,int c) {
+ }
+
+  public void foo() {
+    someMethod(1,2,3);
+    someMethod(2,3,4);
+    someMethod(3,4,5);
+  }
+
+}
+
index 7cb98a6ef92715cc4329960e7e82ef29e19c09de..87c00def2c9e817fdc2c026a274666da93fa2607 100644 (file)
@@ -24,6 +24,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
+  public void testAtAJVerificationError_pr144602() { runTest("atAJ perthis aspect verification error");}
   public void testLTWAndGeneratingSUID_pr144465() { runTest("ltw with serialversionUID creation"); }
   public void testAspects14PerSingleton_pr122253() { runTest("aspects14 - persingleton");}
   public void testAspects14PerCflow_pr122253() { runTest("aspects14 - percflow");}
index 03bbb19d6464cd71fc65e2f15440ef9669ab0a7f..557d8182c586ad623e663db93123745086b853f9 100644 (file)
      <run class="TopLevelType"/>
     </ajc-test>
     
+    
+    <ajc-test dir="bugs152/pr144602" title="atAJ perthis aspect verification error">
+     <compile files="MyAspect.aj" options="-1.5"/>
+     <run class="MyAspect"/>
+    </ajc-test>
+    
     <ajc-test dir="bugs152/pr132349" title="ITD on inner type of generic type - 2">
      <compile files="TopLevelType2.java" options="-1.5">
        <message kind="error" line="12"/> <!-- error message is currently crap - its a parser message -->
       </compile>
     </ajc-test>
     
-    <ajc-test dir="bugs152/pr144465" title="ltw with serialversionUID creation">
+   <ajc-test dir="bugs152/pr144465" title="ltw with serialversionUID creation">
       <compile files="BigHorribleClass.java"/>
       <compile files="AnAspect.java"/>
       <run class="BigHorribleClass" ltw="aop1.xml">