*/
public class Ajc172Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ // extends
+ public void testPSignatures_pr399590() throws Exception {
+ runTest("p signatures 1");
+ JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Cage");
+ String sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal<+LCage<TT;>;>;>LBar;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal2<+LCage2<TT;>;>;>LBar2;Ljava/io/Serializable;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ }
+
+ // extends two classes
+ public void testPSignatures_pr399590_2() throws Exception {
+ runTest("p signatures 2");
+ JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Cage");
+ String sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal<+LCage<TT;LIntf;>;LIntf;>;Q:Ljava/lang/Object;>LBar;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal2<+LCage2<TT;LIntf2;>;LIntf2;>;Q:Ljava/lang/Object;>LBar2;Ljava/io/Serializable;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ }
+
+ // super
+ public void testPSignatures_pr399590_3() throws Exception {
+ runTest("p signatures 3");
+ JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Cage");
+ String sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal<-LXXX<TT;>;>;>LBar;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal2<-LXXX2<TT;>;>;>LBar2;Ljava/io/Serializable;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ }
+
+ // super
+ public void testPSignatures_pr399590_4() throws Exception {
+ runTest("p signatures 4");
+ JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Cage");
+ String sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal<-LXXX<TT;>;LYYY;>;>LBar;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal2<-LXXX2<TT;>;LYYY2;>;>LBar2;Ljava/io/Serializable;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ }
+
+ // unbound
+ public void testPSignatures_pr399590_5() throws Exception {
+ runTest("p signatures 5");
+ JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Cage");
+ String sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal<*>;>LBar;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ sss = jc.getSignatureAttribute().getSignature();
+ assertEquals("<T:LAnimal2<*>;>LBar2;Ljava/io/Serializable;", sss);
+ jc = getClassFrom(ajc.getSandboxDirectory(),"Cage2");
+ }
+
public void testIfPointcutNames_pr398246() throws Exception {
runTest("if pointcut names");
JavaClass jc = getClassFrom(ajc.getSandboxDirectory(), "X");
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<suite>
+
+ <ajc-test dir="bugs172/pr399590" title="p signatures 1">
+ <compile files="Cage.java" options="-1.5"/>
+ <compile files="Cage2.java" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs172/pr399590/two" title="p signatures 2">
+ <compile files="Cage.java" options="-1.5"/>
+ <compile files="Cage2.java" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs172/pr399590/three" title="p signatures 3">
+ <compile files="Cage.java" options="-1.5"/>
+ <compile files="Cage2.java" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs172/pr399590/four" title="p signatures 4">
+ <compile files="Cage.java" options="-1.5"/>
+ <compile files="Cage2.java" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs172/pr399590/five" title="p signatures 5">
+ <compile files="Cage.java" options="-1.5"/>
+ <compile files="Cage2.java" options="-1.5"/>
+ </ajc-test>
+
<ajc-test dir="bugs172/pr398588" title="optional aspects">
<compile files="Anno.java Anno2.java" outjar="anno.jar" options="-1.5"/>
<compile files="AspectA.java" classpath="anno.jar" outjar="aspect.jar" options="-Xlint:ignore -1.5"/>