diff options
author | Andy Clement <aclement@pivotal.io> | 2019-01-30 16:55:38 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2019-01-30 16:55:38 -0800 |
commit | 2b24e7377da7c849fe7f9f4fa06a701664f9d27d (patch) | |
tree | 64c36c8fcf29633af7a5e2f7405b94cbec629ca8 /tests/src/test/java/org/aspectj/systemtest/ajc162 | |
parent | d60de8d0b3e62eb36b612a824bb9345d865c0155 (diff) | |
download | aspectj-2b24e7377da7c849fe7f9f4fa06a701664f9d27d.tar.gz aspectj-2b24e7377da7c849fe7f9f4fa06a701664f9d27d.zip |
mavenizing tests - wip
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc162')
3 files changed, 584 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc162/Ajc162Tests.java new file mode 100644 index 000000000..fb42a6351 --- /dev/null +++ b/tests/src/test/java/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -0,0 +1,223 @@ +/******************************************************************************* + * Copyright (c) 2008 Contributors + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andy Clement - initial API and implementation + *******************************************************************************/ +package org.aspectj.systemtest.ajc162; + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + + // AspectJ1.6.2 + + // When faulting in the binary hierarchy: + // <root> [java source file] + // Clazz.java [java source file] C:\temp\ajcSandbox\aspectj16_2\ajcTest3344.tmp\Clazz.java:1::0 + // import declarations [import reference] + // Clazz [class] C:\temp\ajcSandbox\aspectj16_2\ajcTest3344.tmp\Clazz.java:1::13 + // foo() [method] C:\temp\ajcSandbox\aspectj16_2\ajcTest3344.tmp\Clazz.java:2::36 + // Asp.class (binary) [class] C:\temp\ajcSandbox\aspectj16_2\ajcTest3344.tmp\binaryaspect.jar!Asp.class:1::0 + // import declarations [import reference] + // Asp [aspect] C:\temp\ajcSandbox\aspectj16_2\ajcTest3344.tmp\binaryaspect.jar!Asp.class:1::0 + // before(): <anonymous pointcut> [advice] C:\temp\ajcSandbox\aspectj16_2\ajcTest3344.tmp\binaryaspect.jar!Asp.class:2::0 + // Hid:1:(targets=1) [Asp.class (binary)}Asp&before (advises) {Clazz.java[Clazz~foo + // Hid:2:(targets=1) {Clazz.java[Clazz~foo (advised by) [Asp.class (binary)}Asp&before + + // without faulting in the model they stop at the top level (the class level) + + // Hid:1:(targets=1) "{Clazz.java[Clazz~foo" (advised by) "{Asp.class" + // Hid:2:(targets=1) "{Asp.class" (advises) "{Clazz.java[Clazz~foo" + + // what I want for the hid is: + + // <somethingIndicatingBinary>"[Asp.class}Asp&before" + /* + * public void testBinaryAspectModeling() throws Exception { runTest("binary aspects model"); + * AsmManager.dumptree(AsmManager.getDefault().getHierarchy().getRoot(), 0); PrintWriter pw = new PrintWriter(System.out); + * AsmManager.getDefault().dumprels(pw); pw.flush(); } + */ + public void testPerClause() { + runTest("ltw perclause"); + } + + public void testNullDelegateForArray_pr247683() { + runTest("null delegate for array"); + } + + public void testPerClause2() { + runTest("ltw perclause - 2"); + } + + public void testPerClause3() { + runTest("ltw perclause - 3"); + } + + public void testPerClause4_IncorrectPerClause() { + runTest("ltw perclause - 4"); + } + + public void testAnnoValueBinding_pr246264() { + runTest("anno value binding"); + } + + public void testAroundAdviceProceed_pr211607() { + runTest("around advice proceed"); + } + + // public void testAdvisingInterfaces_pr163005() { runTest("advising joinpoints in interfaces"); } + public void testChainedItds_pr176905() { + runTest("chained itds"); + } + + public void testDecAtAnnoDecP_pr198341() { + runTest("dec atanno and decp"); + } + + public void testMissingMarkers_pr197720() { + runTest("missing markers on inherited annotated method"); + } + + public void testLostGenericsSigOnItd_pr211146() { + runTest("lost generic sig on itd"); + } + + public void testLostGenericsSigOnItd_pr211146_2() { + runTest("lost generic sig on itd - 2"); + } + + public void testLostGenericsSigOnItd_pr211146_3() { + runTest("lost generic sig on itd - 3"); + } + + public void testLostGenericsSigOnItd_pr211146_4() { + runTest("lost generic sig on itd - 4"); + } + + public void testLostGenericsSigOnItd_pr211146_5() { + runTest("lost generic sig on itd - 5"); + } + + public void testMissingContext_pr194429() { + runTest("missing context"); + } + + public void testWarningsForLimitations_pr210114() { + runTest("warnings for limitations"); + } + + public void testPTW_pr244830() { + runTest("ptw initFailureCause"); + } + + public void testGenericItdsOverrides_pr222648() { + runTest("generic itds - overrides"); + } + + public void testGenericItdsOverrides_pr222648_2() { + runTest("generic itds - overrides - 2"); + } + + public void testItdCallingGenericMethod_pr145391() { + runTest("itd calling generic method"); + } + + public void testItdCallingGenericMethod_pr145391_2() { + runTest("itd calling generic method - 2"); + } + + public void testPublicPointcut_pr239539() { + runTest("public pointcut"); + } + + public void testGenericDecp_pr241047() { + runTest("generic decp"); + } + + public void testGenericDecp_pr241047_2() { + runTest("generic decp - 2"); + } + + public void testGenericItds_pr242797_1() { + runTest("generic itds - 1"); + } + + public void testGenericItds_pr242797_2() { + runTest("generic itds - 2"); + } + + public void testGenericItds_pr242797_3() { + runTest("generic itds - 3"); + } + + public void testPrivilegedGenerics_pr240693() { + runTest("privileged generics"); + } + + // public void testParamAnnosPipelining_pr241847() { runTest("param annos pipelining");} + // public void testParamAnnoInner_pr241861() { + // runTest("param annotation inner class"); + // } + + // public void testParamAnnoInner_pr241861_2() { + // runTest("param annotation inner class - 2"); + // } + + // public void testParamAnnoInner_pr241861_3() { + // runTest("param annotation inner class - 3"); + // } + + public void testAnnotationDecp_pr239441() { + runTest("annotation decp"); + } + + public void testAtAspectJPerTarget_pr198181() { + runTest("ataspectj ltw pertarget"); + } + + public void testAnnotationValueDecp_pr238992() { + runTest("annotation value decp"); + } + + public void testAnnotationValueDecp_pr238992_2() { + runTest("annotation value decp - 2"); + } + + public void testAnnotationValueDecp_pr238992_3() { + runTest("annotation value decp - 3"); + } + + public void testAnnotationValueDecp_pr238992_4() { + runTest("annotation value decp - 4"); + } + + public void testAnnotationValueDecp_pr238992_5() { + runTest("annotation value decp - 5"); + } + + /* + * test plan execution((..,String,..)) args(..,String,..) + * + * @args(..,Foo,..) + */ + // public void testParameterSubsettingMatching_pr233718_Matching() { runTest("parameter subsetting - matching");} + // public void testParameterSubsettingMatching_pr233718_ArgsMatching() { runTest("parameter subsetting - args matching");} + // public void testParameterSubsettingMatching_pr233718_ArgsBinding() { runTest("parameter subsetting - args binding");} + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(Ajc162Tests.class); + } + + protected File getSpecFile() { + return getClassResource("ajc162.xml"); + } + +}
\ No newline at end of file diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc162/AllTestsAspectJ162.java b/tests/src/test/java/org/aspectj/systemtest/ajc162/AllTestsAspectJ162.java new file mode 100644 index 000000000..409d0d670 --- /dev/null +++ b/tests/src/test/java/org/aspectj/systemtest/ajc162/AllTestsAspectJ162.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2008 Contributors + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andy Clement - initial API and implementation + *******************************************************************************/ +package org.aspectj.systemtest.ajc162; + +import junit.framework.Test; +import junit.framework.TestSuite; + +public class AllTestsAspectJ162 { + + public static Test suite() { + TestSuite suite = new TestSuite("AspectJ 1.6.2 tests"); + //$JUnit-BEGIN$ + suite.addTest(Ajc162Tests.suite()); + //$JUnit-END$ + return suite; + } +} diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/test/java/org/aspectj/systemtest/ajc162/ajc162.xml new file mode 100644 index 000000000..d8b86f20d --- /dev/null +++ b/tests/src/test/java/org/aspectj/systemtest/ajc162/ajc162.xml @@ -0,0 +1,336 @@ +<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]> + +<!-- AspectJ v1.6.2 Tests --> +<suite> + + + <ajc-test dir="bugs162/pr247683" title="null delegate for array"> + <compile options="-1.5" files="A.java"/> + </ajc-test> + + <ajc-test dir="bugs162/IntoBinary" title="binary aspects model"> + <compile options="-1.5 -emacssym" files="Clazz.java" aspectpath="binaryaspect.jar"/> + </ajc-test> + + <ajc-test dir="bugs162/pr246918" title="ltw perclause"> + <compile options="-1.5" files="Code.java Dode.java" outjar="code.jar"/> + <compile options="-1.5 -Xlint:ignore" files="Base.java" outjar="aspects.jar"/> + <run class="Code" classpath="aspects.jar;code.jar" ltw="aop1.xml"> + <stderr> + <line text="advice fired class Code"/> + <line text="advice fired class Dode"/> + </stderr> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr246918" title="ltw perclause - 2"> + <compile options="-1.5" files="Code.java Dode.java" outjar="code.jar"/> + <compile options="-1.5 -Xlint:ignore" files="Base.java" outjar="aspects.jar"/> + <run class="Code" classpath="aspects.jar;code.jar" ltw="aop2.xml"> + <stderr> + <line text="advice fired class Dode"/> + </stderr> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr246918" title="ltw perclause - 3"> + <compile options="-1.5" files="Code.java Dode.java" outjar="code.jar"/> + <compile options="-1.5 -Xlint:ignore" files="Base2.java" outjar="aspects.jar"/> + <run class="Code" classpath="aspects.jar;code.jar" ltw="aop3.xml"> + <stderr> + <line text="advice fired class Dode"/> + </stderr> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr246918" title="ltw perclause - 4"> + <compile options="-1.5" files="Code.java Dode.java" outjar="code.jar"/> + <compile options="-1.5 -Xlint:ignore" files="Base2.java" outjar="aspects.jar"/> + <run class="Code" classpath="aspects.jar;code.jar" ltw="aop4.xml"> + <stderr> + <line text="Unrecognized per clause specified"/> + <line text="Concrete-aspect 'SubAspect' could not be registered"/> + <line text="warning failure(s) registering aspects."/> + </stderr> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr246264" title="anno value binding"> + <compile options="-1.5" files="A.java"/> + <run class="A"/> + </ajc-test> + + <ajc-test dir="bugs162/pr211607" title="around advice proceed"> + <compile options="-1.5" files="Bug.java"/> + <run class="Bug"/> + </ajc-test> + + <ajc-test dir="bugs162/pr163005" title="advising joinpoints in interfaces"> + <compile files="SomeClass.java SomeInterface.java ProblemAspect.java" options="-1.4"> + <message kind="warning" text="Cannot advise join point 'method-call(java.lang.Class java.lang.Class.forName(java.lang.String))' in interface 'SomeInterface' with around advice from 'ProblemAspect.java' line '7' as it will lead to creation of code in an interface (compiler limitation, bug 163005)"/> + </compile> + <run class="SomeClass"/> + </ajc-test> + + <ajc-test dir="bugs162/pr176905" title="chained itds"> + <compile options="-1.5" files="ChainedItd.aj"> + </compile> + <run class="ChainedItd"> + <stderr/> <!-- no errors--> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr198341" title="dec atanno and decp"> + <compile options="-1.5 -showWeaveInfo" files="AnnotationAspect.java"> + <message kind="weave" text="'Annotated' (AnnotationAspect.java:12) is annotated with @TestAnnotation2 type annotation from 'AnnotationAspect' (AnnotationAspect.java:18)"/> + <message kind="weave" text="Extending interface set for type 'Annotated' (AnnotationAspect.java) to include 'Marker' (AnnotationAspect.java)"/> + </compile> + </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"> + <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C1' (C1.java:12) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C2.aMethod())' in Type 'test.aspects.C2$InnerClass' (C2.java:17) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C2.aMethod())' in Type 'test.aspects.C2' (C2.java:7) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C2.aMethod())' in Type 'test.aspects.C2' (C2.java:28) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3$InnerClass' (C3.java:22) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C2.aMethod())' in Type 'test.aspects.C3$InnerClass' (C3.java:25) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3' (C3.java:8) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C2.aMethod())' in Type 'test.aspects.C3' (C3.java:11) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3' (C3.java:32) advised by around advice from 'test.aspects.MyAnnAspect' (MyAnnAspect.java:16)"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr211146" title="lost generic sig on itd"> + <compile files="GenericsLost.java" options="-1.5"/> + <run class="GenericsLost"/> + </ajc-test> + + <ajc-test dir="bugs162/pr211146" title="lost generic sig on itd - 2"> + <compile files="GenericsLost2.java" outjar="code.jar" options="-1.5"/> + <compile files="GenericsLost2Dep.java" classpath="$sandbox/code.jar" options="-1.5"/> + </ajc-test> + + <ajc-test dir="bugs162/pr211146" title="lost generic sig on itd - 3"> + <compile files="GenericsLost3.java" options="-1.5"/> + <run class="GenericsLost3"/> + </ajc-test> + + <ajc-test dir="bugs162/pr211146" title="lost generic sig on itd - 4"> + <compile files="GenericsLost4.java" options="-1.5"/> + <run class="GenericsLost4"/> + </ajc-test> + + <ajc-test dir="bugs162/pr211146" title="lost generic sig on itd - 5"> + <compile files="GenericsLost5.java" options="-1.5"/> + <run class="GenericsLost5"/> + </ajc-test> + + <ajc-test dir="bugs162/pr194429" title="missing context"> + <compile files="A.java" options="-1.5"> + <message kind="error" line="14" text="incompatible type, expected java.util.Set found BindingTypePattern("/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr210114" title="warnings for limitations"> + <compile files="TestAspect.java" options="-1.5"> + <message kind="warning" text="Only before advice is supported on handler join points (compiler limitation)"/> + <message kind="warning" text="around on initialization not supported (compiler limitation)"/> + <message kind="warning" text="around on pre-initialization not supported (compiler limitation)"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr244830" title="ptw initFailureCause"> + <compile files="PTW.java" options="-1.5"/> + <run class="PTW"/> + </ajc-test> + + <ajc-test dir="bugs162/pr222648" title="generic itds - overrides"> + <compile files="DataAspect.aj DataInterface.java Foo.java FooBase.java Marker.java Resource.java" options="-1.5"/> + </ajc-test> + + <ajc-test dir="bugs162/pr222648" title="generic itds - overrides - 2"> + <compile files="X.java" options="-1.5"/> + </ajc-test> + + <ajc-test dir="bugs162/pr145391" title="itd calling generic method"> + <compile files="GenericType.java" options="-1.5"/> + <run class="GenericType"/> + </ajc-test> + + <ajc-test dir="bugs162/pr145391" title="itd calling generic method - 2"> + <compile files="GenericType2.java" options="-1.5"> + <message kind="error" text="The method getValue(V) in the type GenericType2<V> is not applicable for the arguments"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr241047" title="generic decp"> + <compile files="SomeAspect.java SomeBaseClass.java SomeSubClass.java SomeSubClass2.java SomeSubClass3.java SomeInterface.java SomeBaseClass2.java SomeBaseClass3.java" options=" -Xlint:ignore -1.5"> + </compile> + <run class="SomeBaseClass"> + <stdout> + <line text="correct advice :-)"/> + <line text="some base method"/> + <line text="correct advice :-)"/> + <line text="some sub method"/> + <line text="correct advice :-)"/> + <line text="some base method2"/> + <line text="correct advice :-)"/> + <line text="some sub method2"/> + <line text="correct advice :-)"/> + <line text="some base method3"/> + <line text="correct advice :-)"/> + <line text="some sub method3"/> + </stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr241047/case2" title="generic decp - 2"> + <compile files="SomeAspect.java SomeBaseClass.java SomeSubClass.java SomeInterface.java" options=" -Xlint:ignore -1.5"> + </compile> + <run class="SomeBaseClass"> + <stdout> + <line text="correct advice :-)"/> + <line text="some base method"/> + <line text="correct advice :-)"/> + <line text="some sub method"/> + </stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr239539" title="public pointcut"> + <compile files="PrintAround.java PrintAroundFoo.java Foo.java" options="-1.5"> + <message kind="error" line="7" text="pointcut 'bar.PrintAround.method()' is not visible from type "/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr242797/case1" title="generic itds - 1"> + <compile files="ClassUtils.java CMEFinder.java Finder.java H2Deployment.java Localized.java LocalizedFinder.java OnetElement.java OnetFinder.java Partitioned.java PartitionedFinder.java" options="-1.5"> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr242797/case2" title="generic itds - 2"> + <compile files="GenericMethodAspect.aj GenericMethodInterface.java GenericMethodImpl.java" options="-1.5"> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr242797/case3" title="generic itds - 3"> + <compile files="GenericMethodAspect.aj GenericMethodInterface.java GenericMethodImpl.java GenericMethodImpl2.java Type1.java Type2.java" options="-1.5"> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr241847" title="param annos pipelining"> + <compile files="Asp.aj Ann.java CC.java II.java LongLong.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Join point 'method-execution(void LongLong.m1(java.lang.String))' in Type 'LongLong' (LongLong.java:2) advised by before advice from 'Asp' (Asp.aj:5)"/> + <message kind="weave" line="3"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr239441" title="annotation decp"> + <compile files="Test3.java SampleAspect.java" options="-1.5 -showWeaveInfo -XhasMember"> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr241861" title="param annotation inner class"> + <compile files="Outer.java Ann.java Asp.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Join point 'constructor-execution(void Outer$Inner.<init>(Outer, java.lang.String))' in Type 'Outer$Inner' (Outer.java:5) advised by before advice from 'Asp' (Asp.java:2)"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr241861" title="param annotation inner class - 2"> + <compile files="X.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Join point 'constructor-execution(void Outer$Inner.<init>(Outer, java.lang.Integer))' in Type 'Outer$Inner' (X.java:7) advised by before advice from 'Asp' (X.java:2)"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr241861" title="param annotation inner class - 3"> + <compile files="Y.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Join point 'constructor-execution(void Outer$Inner.<init>(Outer, java.lang.String))' in Type 'Outer$Inner' (Y.java:7) advised by before advice from 'Asp' (Y.java:2)"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr240693" title="privileged generics"> + <compile files="PayloadClass.java SomeInterface.java GenericClassInAdvice.java" options="-1.5"> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr238992" title="annotation value decp"> + <compile files="Foo.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'Goo'"/> + </compile> + <run class="Foo"/> + </ajc-test> + + <ajc-test dir="bugs162/pr238992" title="annotation value decp - 2"> + <compile files="Foo2.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'Goo'"/> + <message kind="weave" text="Extending interface set for type 'Hoo'"/> + </compile> + <run class="Foo2"/> + </ajc-test> + + <ajc-test dir="bugs162/pr238992" title="annotation value decp - 3"> + <compile files="Foo3.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'Goo'"/> + </compile> + <run class="Foo3"/> + </ajc-test> + + <ajc-test dir="bugs162/pr238992" title="annotation value decp - 4"> + <compile files="Foo4.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'Goo'"/> + <message kind="weave" text="Extending interface set for type 'Hoo'"/> + </compile> + <run class="Foo4"/> + </ajc-test> + + <ajc-test dir="bugs162/pr238992" title="annotation value decp - 5"> + <compile files="Foo5.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Extending interface set for type 'Goo'"/> + <message kind="weave" text="Extending interface set for type 'Hoo'"/> + </compile> + <run class="Foo5"/> + </ajc-test> + + <ajc-test dir="bugs162/pr233718" title="parameter subsetting - matching"> + <compile files="Matching.java" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="Join point 'method-execution(void Matching.m(java.lang.String))' in Type 'Matching' (Matching.java:3) advised by before advice from 'Matching' (Matching.java:8)"/> + <message kind="weave" text="'method-execution(void Matching.m(java.lang.String, java.lang.String))' in Type 'Matching' (Matching.java:4) advised by before advice from 'Matching' (Matching.java:8)"/> + <message kind="weave" text="'method-execution(void Matching.m(int, java.lang.String))' in Type 'Matching' (Matching.java:5) advised by before advice from 'Matching' (Matching.java:8)"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr233718" title="parameter subsetting - args matching"> + <compile files="ArgsMatching.java" options="-1.5 -showWeaveInfo"> + <!-- + <message kind="weave" text="Join point 'method-execution(void Matching.m(java.lang.String))' in Type 'Matching' (Matching.java:3) advised by before advice from 'Matching' (Matching.java:8)"/> + <message kind="weave" text="'method-execution(void Matching.m(java.lang.String, java.lang.String))' in Type 'Matching' (Matching.java:4) advised by before advice from 'Matching' (Matching.java:8)"/> + <message kind="weave" text="'method-execution(void Matching.m(int, java.lang.String))' in Type 'Matching' (Matching.java:5) advised by before advice from 'Matching' (Matching.java:8)"/> + --> + </compile> + </ajc-test> + + <ajc-test dir="bugs162/pr233718" title="parameter subsetting - args binding"> + <compile files="ArgsBinding.java" options="-1.5"/> + <run class="ArgsBinding"> + <stdout> + <line text="0) a"/> + <line text="0) b"/> + </stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs162/pr198181" title="ataspectj ltw pertarget"> + <compile files="M.java" outjar="code.jar"/> + <compile files="A.java" classpath="code.jar" options="-1.5 -Xlint:ignore"/> + <run class="m.M" classpath="$sandbox/code.jar" ltw="aop.xml"> + <stdout> + <line text="tick 0"/> + <line text="tick 0"/> + <line text="tick 0"/> + </stdout> + </run> + </ajc-test> + +</suite>
\ No newline at end of file |