@@ -0,0 +1,16 @@ | |||
public class Foo { | |||
public void m(int i,@Anno String s,int j) {} | |||
public static void main(String []argv) { | |||
new Foo().m(1,"A",2); | |||
} | |||
} | |||
@interface Anno {} | |||
aspect X { | |||
before(): execution(* *(..,String,..)) {System.out.println("advice");} | |||
before(): execution(* *(..,@Anno (String),..)) {System.out.println("advice");} | |||
before(): execution(* *(*,@Anno (String),*)) {System.out.println("advice");} | |||
} | |||
@@ -18,6 +18,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; | |||
public class Ajc167Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
public void testAnnoMatching_pr293203() { | |||
runTest("anno matching"); | |||
} | |||
public void testScalaOuterClassNames_pr288064() { | |||
runTest("outer class names - scala"); | |||
} | |||
@@ -32,6 +36,7 @@ public class Ajc167Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
return XMLBasedAjcTestCase.loadSuite(Ajc167Tests.class); | |||
} | |||
@Override | |||
protected File getSpecFile() { | |||
return new File("../tests/src/org/aspectj/systemtest/ajc167/ajc167.xml"); | |||
} |
@@ -2,6 +2,17 @@ | |||
<suite> | |||
<ajc-test dir="bugs167/pr293203" title="anno matching"> | |||
<compile files="Foo.java" options="-1.5"/> | |||
<run class="Foo"> | |||
<stdout> | |||
<line text="advice"/> | |||
<line text="advice"/> | |||
<line text="advice"/> | |||
</stdout> | |||
</run> | |||
</ajc-test> | |||
<ajc-test dir="bugs167/pr288064" title="outer class names - scala"> | |||
<compile files="Main.java Outer.java Aspect.java" options="-1.5"/> | |||
<run class="test.Main"> |