<ajc-test dir="bugs150" title="abstract perthis in @AspectJ">
<compile files="pr121197.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="different numbers of type vars">
<compile files="pr121575.aj" options="-1.5"/>
<run class="pr121575"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr121385" title="mixing aspect styles">
<compile files="A.java" options="-1.5"/>
<run class="A"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/tvars" title="different numbers of type vars - 2">
<compile files="Case1.aj" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void MyClass.read(java.lang.String))' in Type 'MyClass' (Case1.aj:13) advised by before advice from 'MyAspect' (Case1.aj:5)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/tvars" title="different numbers of type vars - 3">
<compile files="Case2.aj" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void MyClass.read(java.lang.Number))' in Type 'MyClass' (Case2.aj:13) advised by before advice from 'MyAspect' (Case2.aj:5)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/tvars" title="different numbers of type vars - 4">
<compile files="Case3.aj" options="-1.5 -showWeaveInfo">
<message kind="error" line="9" text="The type MyClass<T,E> must implement the inherited abstract method MyInterface<T>.read(T)"/>
<compile files="pr118698.aj"/>
<run class="pr118698"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="modifier overrides">
<compile files="pr119749.aj" options="-1.5">
<message kind="warning" line="26" text="C E.*()"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr120826" pr="120826" title="varargs NPE">
<compile files="TestVarargs.java" options="-1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr112476/case1" title="binary weaving decp broken">
<compile files="lib/A.java,lib/B.java,lib/C.java" outjar="library.jar" options="-1.5"/>
<!-- library.jar on the aspectpath here just for resolution when compiling SuperC -->
<compile aspectpath="library.jar" files="weaved/SuperC.java" outjar="newsuper.jar" options="-1.5"/>
- <compile inpath="library.jar;newsuper.jar" files="weaved/DeclareAspect.aj" options="-1.5 -showWeaveInfo">
+ <compile inpath="library.jar,newsuper.jar" files="weaved/DeclareAspect.aj" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Setting superclass of type 'lib.C' (C.java) to 'weaved.SuperC' (DeclareAspect.aj)"/>
</compile>
<run class="weaved.SuperC">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114005" title="Annotated ITDFs - 1">
<compile files="Declaration1.java" options="-1.5"/>
<run class="Declaration1">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="114495" title="parameterized pointcut and advice">
<compile files="Pr114495.aj" options="-1.5">
<message kind="warning" line="3" text="going()"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="112880" title="double parameter generic abstract type">
<compile files="Pr112880.aj" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114005" title="Annotated ITDFs - 2">
<compile files="Declaration2.java" options="-1.5"/>
<run class="Declaration2">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="114054" title="pertarget and negated pointcut">
<compile files="Pr114054.aj" options=""/>
<run class="Pr114054"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="121385" title="mixing styles">
<compile files="pr121385.aj" options="-1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 1">
<compile files="Basic1.java" options="-1.5"/>
<run class="Basic1"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/decps" title="decps - 1b">
<compile files="Basic1b.java" options="-1.5"/>
<run class="Basic1b"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 2">
<compile files="Basic2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void X$I.m2())' in Type 'X' (Basic2.java:15) advised by before advice from 'X' (Basic2.java:23)"/>
<message kind="weave" text="Join point 'method-execution(void Basic2.main(java.lang.String[]))' in Type 'Basic2' (Basic2.java:2) advised by before advice from 'X' (Basic2.java:23)"/>
</compile>
<run class="Basic2"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/decps" title="decps - 2b">
<compile files="Basic2b.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void Basic2b.main(java.lang.String[]))' in Type 'Basic2b' (Basic2b.java:4) advised by before advice from 'X' (Basic2b.java:27)"/>
</compile>
<run class="Basic2b"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 3">
<compile files="Basic3.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Extending interface set for type 'Basic3' (Basic3.java) to include 'X$I' (Basic3.java)"/>
<message kind="weave" text="Type 'X$I' (Basic3.java) has intertyped method from 'X' (Basic3.java:'void X$I.m4()')"/>
</compile>
<run class="Basic3"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/decps" title="decps - 3b">
<compile files="Basic3b.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'X' (Basic3b.java:35)"/>
</compile>
<run class="Basic3b"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 3c">
<compile files="Basic3c.java" options="-1.5">
<message kind="error" text="@DeclareParents: defaultImpl="X$IImpl" has a no argument constructor, but it is of incorrect visibility"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119570" pr="119570" title="spurious override method warning">
<compile files="NodeImpl.java,INode.java,ParameterizedDP.java" options="-1.5"/>
<run class="bugs.ParameterizedDP"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119570" pr="119570" title="spurious override method warning - 2">
<compile files="ParameterizedDP.java,NodeImpl.java,INode.java" options="-1.5"/>
<run class="bugs.ParameterizedDP"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119570" pr="119570" title="spurious override method warning - 3">
<compile files="SimpleTest.java" options="-1.5"/>
<run class="SimpleTest"/>
<ajc-test dir="bugs150/pr120521" pr="120521" title="named pointcut not resolved in pertarget pointcut">
<compile files="PerTargetSubaspectError.java" options="-1.4"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr119210" pr="119210" title="autoboxing around advice - 1">
<compile files="TestLib.java,ThreadAspectLib.java" options="-1.5"/>
<line text="obtaining five, got 3"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119210" pr="119210" title="autoboxing around advice - 2">
<compile files="TestLib2.java,ThreadAspectLib2.java" options="-1.5"/>
<run class="TestLib2">
<line text="obtaining five, got 3"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119210" pr="119210" title="autoboxing around advice - 3">
<compile files="TestLib2.java,ThreadAspectLib2.java" options="-1.4">
<message kind="error" line="16" text="incompatible return type applying to method-call(java.lang.Integer TestLib2.getFive())"/>
<message kind="error" line="4" text="incompatible return type applying to method-call(java.lang.Integer TestLib2.getFive())"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119539" pr="119539" title="generic pertypewithin aspect - 1">
<compile files="GenericPerTypeWithin.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'constructor-execution(void bugs.C.<init>())' in Type 'bugs.C' (GenericPerTypeWithin.java:10) advised by before advice from 'bugs.A' (GenericPerTypeWithin.java:21)"/>
<message kind="weave" text="Join point 'constructor-execution(void bugs.C.<init>())' in Type 'bugs.C' (GenericPerTypeWithin.java:10) advised by before advice from 'bugs.A' (GenericPerTypeWithin.java:20)"/>
</compile>
<run class="bugs.GenericPerTypeWithin"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119539" pr="119539" title="generic pertypewithin aspect - 2">
<compile files="GenericPerTypeWithin2.java" options="-1.5 -showWeaveInfo">
<message kind="error" line="24" text="a generic super-aspect must be fully parameterized in an extends clause"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119539" pr="119539" title="generic pertypewithin aspect - 3">
<compile files="GenericPerTypeWithin3.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'constructor-execution(void bugs.GenericPerTypeWithin3$C.<init>())' in Type 'bugs.GenericPerTypeWithin3$C' (GenericPerTypeWithin3.java:15) advised by before advice from 'bugs.GenericPerTypeWithin3$A' (GenericPerTypeWithin3.java:10)"/>
<message kind="warning" line="15" text="Singleton.creation()"/>
</compile>
<run class="bugs.GenericPerTypeWithin3"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr117854" pr="117854" title="broken switch transform">
<compile files="BrokenSwitch.java" options=""/>
<run class="BrokenSwitch"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119749" pr="119749" title="incorrect exception signature matching">
- <compile files="InheritedThrows.java" options="-showWeaveInfo">
+ <compile files="InheritedThrows.java" options="-showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void InheritedThrows$NestedClassBoth.m())' in Type 'InheritedThrows$NestedClassBoth' (InheritedThrows.java:24) advised by afterThrowing advice from 'InheritedThrows$A' (InheritedThrows.java:4)"/>
<message kind="weave" text="Join point 'method-execution(void InheritedThrows$NestedClass1.m())' in Type 'InheritedThrows$NestedClass1' (InheritedThrows.java:16) advised by afterThrowing advice from 'InheritedThrows$A' (InheritedThrows.java:4)"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr118599" pr="118599" title="ambiguous method when binary weaving - 1">
<!-- separate compilation was failing -->
<compile files="Attributable.java" outjar="foo.jar" options="-1.5"/>
<compile files="AnAttributedClass.java" aspectpath="foo.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr118599" pr="118599" title="ambiguous method when binary weaving - 2">
<!-- complete compilation works -->
<compile files="Attributable.java,AnAttributedClass.java" options="-1.5"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="112756" title="pointcut expression containing 'assert'">
<compile files="Pr112756.aj" options="-warn:assertIdentifier -Xdev:Pinpoint"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr118781" pr="118781" title="verify error with around advice array sigs">
<compile files="MyMain.java,MyAspect.java,MyClass.java" options="-XnoInline"/>
<run class="blah.MyMain"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr117681" pr="117681" title="at declare parents">
<compile files="Test.java,TestAspect.java,Audit.java,AuditImpl.java" options="-1.5"/>
<run class="Test"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr120474" pr="120474" title="Dollar classes">
<compile files="$ProxyPr120474.java"/>
<compile files="X.aj" options="-outxml -1.4"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr111667" pr="111667" title="lint for advice sorting">
<compile files="A.java,X.java,Y.java" options="-1.5 -Xlint:warning">
<message kind="warning" line="9" text="at this shadow method-execution(void A.m1()) no precedence is specified between advice applying from aspect X and aspect Y [Xlint:unorderedAdviceAtShadow]"/>
<message kind="error" line="8" text="Type mismatch: cannot convert from String to int"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr118326" pr="118326" title="illegal initialization - 2">
<compile files="Foo.java,Bar.java" options="-1.5">
<message kind="error" line="2" text="Type mismatch: cannot convert from null to int"/>
<message kind="error" line="8" text="Type mismatch: cannot convert from String to int"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr117296" pr="117296" title="self bounding generic types">
<compile files="PropertySupport.java" options="-1.5"/>
<run class="PropertySupport"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="113368" title="thisJoinPointStaticPart in if test">
<compile files="Pr113368.aj"/>
<run class="Pr113368">
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr87525" pr="87525" title="privilege problem with switch">
<compile files="A.java,B.java">
<message kind="error" line="5" text="Fields accessible due to an aspect being privileged can not be used in switch statements"/>
<compile files="PointcutLibrary.aj,ReflectOnAjcCompiledPointcuts.java" options="-1.5"></compile>
<run class="ReflectOnAjcCompiledPointcuts" classpath="../lib/bcel/bcel.jar"/>
</ajc-test>
-
+
<ajc-test dir="java5/reflection" title="reflection on itds">
<compile files="InterTypeDeclarations.aj,ReflectOnCodeStyleITDs.java" options="-1.5 -Xlint:ignore -makeAjReflectable"></compile>
<run class="ReflectOnCodeStyleITDs" classpath="../lib/bcel/bcel.jar">
<line text="public C.new(int, int, int)"/>
<line text="C.new(int, int)"/>
<line text="private C.new(int)"/>
- <line text="private C.new(int)"/>
+ <line text="private C.new(int)"/>
<line text="public C.new(int, int, int)"/>
<line text="public C.new(int, int, int)"/>
<line text="int C.getY()"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="compatibility/case1" title="generating code for a 1.2.1 runtime - 1">
<compile files="Simple.java" options="-Xajruntimetarget:1.2"/>
<run class="Simple" classpath="../lib/aspectj/lib/aspectjrt121.jar"/>
</ajc-test>
-
+
<ajc-test dir="compatibility/case2" title="generating code for a 1.2.1 runtime - 2">
<compile files="TrackingErrors.aj,A.java" options="-Xajruntimetarget:1.2 -Xlint:ignore"/>
<run class="A" classpath="../lib/aspectj/lib/aspectjrt121.jar"/>
</ajc-test>
-
+
<ajc-test dir="java5/reflection" title="arg names in advice annotations">
<compile files="AdviceWithArgs.aj" options="-1.5"></compile>
<run class="AdviceWithArgs"/>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/reflection" pr="114322" title="reflection on abstract ITDs (Billing example)">
<compile files="ReflectBilling.java,Billing.aj" options="-1.5 -makeAjReflectable"/>
<run class="ReflectBilling">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="103157" title="returning(Object) binding">
<compile files="Pr103157.aj" options="-1.4"/>
<run class="Pr103157">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="declare soft and adviceexecution" pr="103051">
<compile files="Pr103051.aj" options="-Xdev:Pinpoint"/>
</ajc-test>
<compile files="Pr103097.aj" options="-Xlint:ignore"/>
<run class="Pr103097"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Range problem">
<compile files="pr109614.java"/>
<run class="pr109614"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114436" title="ClassFormatError binary weaving perthis">
<compile files="SimpleTrace.aj,ConcreteSimpleTracing.aj" outjar="aspects.jar" options="-1.4"/>
<compile files="TestClass.java" aspectpath="aspects.jar" options="-1.4"/>
<run class="TestClass"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 1">
<compile files="Consts.java,TestNPE.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="parameterized type and around advice">
<compile files="pr115250.aj" options="-1.5 -Xlint:ignore">
<!-- this first error happens twice, once for each piece of around advice -->
<message kind="error" line="27" text="incompatible return type applying to constructor-execution(void pr115250$C.<init>())"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="parameterized type and around advice - 2">
<compile files="pr115250_2.aj" options="-1.5 -Xlint:ignore -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(pr115250_2$C pr115250_2$C.foo())' in Type 'pr115250_2$C' (pr115250_2.aj:7) advised by around advice from 'pr115250_2$A' (pr115250_2.aj:22)"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr115788" title="parser exception">
<compile files="AAA.java">
<message kind="warning" line="3" text="no match for this type name: Screen"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 2">
<compile files="Consts2.java,TestNPE2.java" options="-1.5">
<message kind="error" line="2" text="The field Consts2.a.Consts2.A_CONST is not visible"/>
<!-- message kind="error" line="2" text="The import a.Consts2.A_CONST cannot be resolved"/-->
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 3">
<compile files="Consts3.java,TestNPE3.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/staticImports" title="import static java.lang.System.out">
<compile files="StaticImport.aj" options="-1.5"/>
</ajc-test>
<message kind="error" line="2" text="Cannot make inter-type declarations on type variables"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="ITDC with no explicit cons call">
<compile files="Pr62606.aj" options="-1.5">
<message kind="warning" line="6" text="[Xlint:noExplicitConstructorCall]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="using same type variable in ITD">
<compile files="SameTypeVariable.aj" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="capturebinding wildcard problem">
<compile files="pr114744.aj" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Anonymous types and nome matching">
<compile files="Pr73050.aj" outjar="jar1.jar">
<message kind="warning" line="16" text="anonymous types should be matched by a * wild card"/>
</compile>
<compile inpath="jar1.jar">
- <message kind="warning" line="0" text="anonymous types should be matched by a * wild card"/>
+ <message kind="warning" line="0" text="anonymous types should be matched by a * wild card"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr86903" title="bcelrenderer bad">
<compile files="GenericService.java,Service.java,Main.java,BadWormhole.java"/>
<run class="Main"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114343" title="field-get, generics and around advice">
<compile files="Test.java,Test1.java,Test2.java,TestAspect.aj" options="-1.5">
<message kind="warning" line="7" text="unchecked conversion when advice applied at shadow field-get(java.util.Set Test1.intsSet), expected java.util.Set<java.lang.Integer> but advice uses java.util.Set"/>
</compile>
<run class="TestAspect"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113947/case1" title="maws generic aspect - 1">
<compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.5">
<message kind="error" line="6" text="Cannot make inter-type declarations on type variables"/>
<message kind="error" line="12" text="Cannot make inter-type declarations on type variables"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="aspectOf and generic aspects">
<compile files="pr115237.aj" options="-1.5"/>
<run class="pr115237"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114343/case3" title="field-get, generics and around advice - 3">
<compile files="Test.java,TTT.java,TestAspect.java" options="-1.5"/>
<run class="TestAspect">
<ajc-test dir="bugs150/pr113947/case2" title="maws generic aspect - 2">
<compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113861" title="field-get problems with generic field">
<compile files="Test.java,TestAspect.java" options="-1.5"/>
<run class="com.Test"/>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 1">
<compile files="pr99191_1.java" options="-1.5">
<message kind="error" line="4" text="The field 'int C.noSuchField' does not exist"/>
<message kind="error" line="5" text="The field 'int B.noSuchField' does not exist"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/bugs/lists/case1" title="generics and ITD overrides - 1">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.5">
</compile>
<run class="IdentifiableAspect"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/bugs/lists/case2" title="generics and ITD overrides - 2">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.5">
</compile>
<run class="IdentifiableAspect"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs/lists/case3" title="generics and ITD overrides - 3">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.5">
</compile>
<run class="IdentifiableAspect"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/bugs/lists/case4" title="generics and ITD overrides - 4">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.5">
</compile>
<run class="IdentifiableAspect"/>
- </ajc-test>
+ </ajc-test>
<!-- Currently a warning doesn't occur if the annotation is already on the field
(see bug 113029). If this is fixed, need to add check for this warning to this
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 2">
<compile files="pr99191_2.java" options="-1.5">
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 3">
<compile files="pr99191_3.java" options="-1.5">
<message kind="error" line="4" text="The method 'public * C.noSuchMethod(..)' does not exist"/>
<message kind="error" line="5" text="The method '* B.noSuchMethod(..)' does not exist"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 4">
<compile files="pr99191_4.java" options="-1.5">
<message kind="warning" text="void C.amethod() - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 5">
<compile files="pr99191_5.java" options="-1.5">
<message kind="error" line="4" text="The method 'C.new(java.lang.String)' does not exist"/>
<message kind="error" line="5" text="The method 'B.new(int)' does not exist"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 6">
<compile files="pr99191_6.java" options="-1.5">
<message kind="warning" text="void C.<init>(int) - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113630/case1" title="IncompatibleClassChangeError - errorscenario">
<compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.5">
<message kind="warning" line="9" text="Failing match because annotation 'javaBean' on type 'Bean' has SOURCE retention. Matching allowed when RetentionPolicy is CLASS or RUNTIME"/>
<message kind="error" line="18" text="The method addPropertyChangeListener(String, BeanTestCase) is undefined for the type Bean"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr113630/case2" title="IncompatibleClassChangeError - workingscenario">
<compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.5"/>
<run class="BeanTestCase"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="Generics ClassCastException">
<compile files="pr113445.aj" options="-1.5,-emacssym"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="test illegal change to pointcut declaration">
<compile files="pr111915.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void SomeClass.doSomething())' in Type 'SomeClass' (pr111915.java:4) advised by around advice from 'DoesntCompile' (pr111915.java:15)"/>
<message kind="weave" text="Extending interface set for type 'SomeClass' (pr111915.java) to include 'java.io.Serializable' (pr111915.java)"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/bridgeMethods" pr="72766" title="Ignore bridge methods">
<compile files="AspectX.aj" inpath="testcode.jar" options="-showWeaveInfo">
<run class="C"/>
</ajc-test>
- <ajc-test dir="java5/pseudoKeywords"
+ <ajc-test dir="java5/pseudoKeywords"
title="method called around in class">
<compile files="MethodCalledAround.java">
</compile>
</ajc-test>
- <ajc-test dir="java5/pseudoKeywords"
+ <ajc-test dir="java5/pseudoKeywords"
title="method called around in aspect">
<compile files="MethodCalledAroundAspect.java">
<message kind="error" line="2"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="64568" title="clear error message on itd with type pattern">
<compile files="pr64568.aj">
<message line="4" kind="error" text="Syntax error on token "*", delete this token"/>
<compile files="pr107486.aj">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="102210" title="NullPointerException trying to compile">
<compile files="PR102210.java"/>
<run class="PR102210">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/compliance" title="java 5 pointcuts and declares at pre-java 5 compliance levels">
<compile files="AJ5FeaturesAtJ14.aj" options="-1.4">
<message kind="error" line="3" text="the @annotation pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="9" text="the @args pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="declare @type is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="annotations are only available if source level is 1.5 or greater"/>
- <message kind="error" line="15" text="cannot convert from Foo to Annotation"/>
+ <message kind="error" line="15" text="cannot convert from Foo to Annotation"/>
<message kind="error" line="17" text="declare @method is only supported at Java 5 compliance level or above"/>
<message kind="error" line="17" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="17" text="cannot convert from Foo to Annotation"/>
<message kind="error" line="19" text="declare @field is only supported at Java 5 compliance level or above"/>
<message kind="error" line="19" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="19" text="cannot convert from Foo to Annotation"/>
- <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
+ <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
<message kind="error" line="21" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="21" text="cannot convert from Foo to Annotation"/>
<message kind="error" line="25" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
<message kind="error" line="27" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/compliance" title="java 5 pointcuts and declares at pre-java 5 compliance levels - 1.7">
<compile files="AJ5FeaturesAtJ14.aj" options="-1.4">
<message kind="error" line="3" text="the @annotation pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="9" text="the @args pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="declare @type is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="annotations are only available if source level is 1.5 or greater"/>
- <message kind="error" line="15" text="Foo is not an annotation type"/>
+ <message kind="error" line="15" text="Foo is not an annotation type"/>
<message kind="error" line="17" text="declare @method is only supported at Java 5 compliance level or above"/>
<message kind="error" line="17" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="17" text="Foo is not an annotation type"/>
<message kind="error" line="19" text="declare @field is only supported at Java 5 compliance level or above"/>
<message kind="error" line="19" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="19" text="Foo is not an annotation type"/>
- <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
+ <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
<message kind="error" line="21" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="21" text="Foo is not an annotation type"/>
<message kind="error" line="25" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
<message kind="error" line="27" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs150" pr="91114" title="before and after are valid identifiers in classes, part 2">
<compile files="pr91114.aj">
</compile>
<message line="9" kind="error" text="can't override final pointcut Base.foo()"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="78707" title="before returning advice not allowed!">
<compile files="pr78707.aj">
<message line="3" kind="error" text="Syntax error on token "returning", delete this token"/>
<message line="3" kind="error" text="Syntax error on token "throwing", delete this token"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="104529" title="@SuppressWarnings should suppress">
<compile files="pr104529.aj" options = "-1.5 -warn:+unchecked">
<message line="11" kind="warning" text="needs unchecked conversion"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="79523" title="declare warning : foo(str) : ...;">
<compile files="pr79523.aj">
<message line="4" kind="warning" text="no match for this type name: str"/>
<message line="4" kind="error" text="args() pointcut designator cannot be used in declare statement"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)">
<compile files="pr107059.aj">
<message line="3" kind="error" text="Syntax error on token "(", "name pattern" expected"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="107059" title="target(@Foo *)">
<compile files="pr107059_2.aj" options="-1.5">
<message kind="error" line="4" text="wildcard type pattern not allowed"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="varargs with type variable">
<compile files="ParameterizedVarArgMatch.aj" options="-1.5">
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs150" pr="108104" title="multiple anonymous inner classes 2">
<compile files="pr108104.aj" options="-1.5">
</compile>
<compile files="package1/Bean.java,package2/Bean.java,package2/propertyChanger.java,package3/pr108425.aj" options="-1.5 -Xlint:ignore">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/" pr="108104" title="inner types and type variables">
<compile files="ShapeCommandMap.java" options="-1.5">
</compile>
<message kind="error" line="8" text="throwing formal 'RuntimeException' must be declared as a parameter in the advice signature"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr106130" pr="106130" title="test weaving with > 256 locals">
<compile files="AroundLotsOfVars.java LotsOfVars.java" options="-preserveAllLocals"/>
<run class="LotsOfVars">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr87376" title="structure model npe on type not found">
<compile files="I.java,NPE.aj" options="-emacssym">
<message kind="error" line="8" text="I cannot be resolved to a type"/>
<message kind="error" line="10" text="I cannot be resolved to a type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="83311" title="overriding/polymorphism error on interface method introduction">
<compile files="pr83311.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="103266" title="NPE on syntax error">
<compile files="pr103266.aj">
<message kind="error" line="41" text="ConnectionRequestContext cannot be resolved to a type"/>
<message kind="error" line="41" text="Type mismatch: cannot convert from new ConnectionRequestContext(){} to WorkerExample.RequestContext"/>
</compile>
</ajc-test>
-
+
<ajc-test title="itd override with no exception clause" dir="bugs150">
<compile files="pr83377.aj"></compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr84260" vm="1.5" title="static import failures">
<compile files="A.java,I1.java,I2.java" options="-1.5"/>
<run class="I1">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test title="anonymous inner class with method returning type parameter" pr="107898" dir="bugs150">
<compile files="pr107898.aj" options="-1.5"></compile>
</ajc-test>
<message kind="error" line="10" text="incompatible return type applying to method-execution(java.lang.Number[] pr72668.getThoseInts())"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="decp" pr="80249" title="Order of types passed to compiler determines weaving behavior">
<compile files="A.java,B.java,AspectX.java"/>
<run class="B"/>
<compile files="B.java,A.java,AspectX.java"/>
<run class="B"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="99228" vm="1.5" title="ITD of a field into a generic class">
<compile files="PR99228.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="98320" vm="1.5" title="intertype with nested generic type">
<compile files="PR98320.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="decs" pr="42743" title="declare soft of runtime exception">
<compile files="DeclareSoftRuntimeException.aj">
<message kind="warning" line="3" text="MyRuntimeException will not be softened as it is already a RuntimeException"/>
</compile>
<run class="VerifyError"/>
</ajc-test>
-
+
<ajc-test dir="bugs" pr="61568" title="Various kinds of ambiguous bindings">
<compile files="AmbiguousBindings.aj" options="-1.4">
<message line="17" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
<message line="25" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs" pr="61658" title="ambiguous args">
<compile files="PR61658.java">
<message line="17" text="ambiguous binding of parameter(s) a, b across '||' in pointcut"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="78021" title="Injecting exception into while loop with break statement causes catch block to be ignored">
<compile files="PR78021.java"/>
<run class="PR78021"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr99089" vm="1.5" pr="99089" title="ArrayIndexOutOfBoundsException - Generics in privileged aspects">
<compile files="DataClass.java,TracingAspect.java" options="-1.5"/>
<run class="DataClass">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="79554" title="Return in try-block disables catch-block if final-block is present">
<compile files="PR79554.java"/>
<run class="PR79554"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="82570" title="Weaved code does not include debug lines">
<compile files="PR82570_1.java"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="83303" title="compiler error when mixing inheritance, overriding and polymorphism">
<compile files="PR83303.java"/>
</ajc-test>
<compile files="PR83645.java" options="-Xlint:ignore"/>
<run class="PR83645"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="bad asm for enums" vm="1.5">
<compile files="Rainbow.java" options="-emacssym,-1.5,-Xset:minimalModel=false"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="10461" title="missing name pattern">
<compile files="PR106461.aj">
<message kind="error" line="3" text="Syntax error on token "(", "name pattern" expected"/>
<message kind="error" line="7" text="Syntax error on token ".", "name pattern" expected"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="106634" title="IllegalStateException unpacking signature of nested parameterized type">
<compile files="pr106634.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="(@Foo *)+ type pattern parse error">
<compile files="AnnotationPlusPatternParseError.aj" options="-1.5"/>
<!-- next line needs the change for inherited anno matching... -->
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="78314" title="good error message for unmatched member syntax">
<compile files="pr78314.aj" options="-1.5">
<message kind="error" line="5" text="Syntax error on token "foo", no accurate correction available"/>
<message kind="error" line="5" text="Syntax error on token "foo", no accurate correction available"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="108377" title="itd field access inside itd method">
<compile files="pr108377.aj"/>
<run class="pr108377"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="95992" title="inner type of generic interface reference from parameterized type">
<compile files="pr95992.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="104024" title="inner class passed as argument to varargs method">
<compile files="pr104024.aj" options="-1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="107858" title="inlined field access in proceed call">
<compile files="pr107858.aj" options="-1.5">
<message kind="error" line="9" text="too many arguments to proceed, expected 0"></message>
<message kind="error" line="10" text="too many arguments to proceed, expected 0"></message>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 1">
<compile files="pr71159.aj">
<message kind="warning" line="26" text="should match"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 2">
<compile files="PrivateITD.aj">
<message kind="warning" line="28" text="should match"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 3">
<compile files="pkg1/A.java,pkg1/B.java,pkg1/C.java,pkg2/ITDInDiffPackage.aj">
<message kind="warning" line="10" text="should match"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="59196" title="args generated correctly for advice execution join point">
<compile files="pr59196.aj" options="-XnoInline -1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="74048" title="no unused warnings on aspect types">
<compile files="pr74048.aj" options="-warn:unusedPrivate"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="59397" title="synthetic arguments on itd cons are not used in matching">
<compile files="pr59397.aj">
<message line="6" kind="warning" text="should match"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="108602" title="parse generic type signature with parameterized type in interface">
<compile files="pr108602.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="105479" title="declare parents introducing override with covariance">
<compile files="pr105479.aj" options="-1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="105479" title="override and covariance with decp - runtime">
<compile files="pr105479part2.aj" options="-1.5"/>
<run class="pr105479part2">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr105479/case2" pr="105479" title="override and covariance with decp - binary weaving">
<compile files="ReturnTypeTest.java" outjar="jar1.jar" options="-1.5 -Xlint:ignore"/>
<compile files="ReturnTypeTester.java" outjar="jar2.jar" options="-1.5"/>
- <compile inpath="jar1.jar;jar2.jar" options="-1.5"/>
+ <compile inpath="jar1.jar,jar2.jar" options="-1.5"/>
<run class="ReturnTypeTester"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="102212" title="abstract synchronized itdms not detected">
<compile files="pr102212.aj">
<message line="7" kind="error" text="The abstract method _abstract in type Parent can only set a visibility modifier, one of public or protected"/>
<compile files="pr101606.aj" options="-warn:unusedPrivate">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr99125" pr="99125" title="itd interface method already existing on interface">
<compile files="p/pr99125.aj,p/I.java,p/J.java" options="-1.5">
</compile>
<message kind="error" line="10" text="inter-type declaration from X conflicts with existing member"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr87530" pr="87530" title="final itd methods on interfaces">
<compile files="FinalITDMOnInterface.aj">
<message kind="error" line="12" text="Cannot override the final method from A.TestInterface"></message>
<message kind="warning" line="21" text="matched join point from sub advice"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="108816" title="advising cflow advice execution">
<compile files="pr108816.aj" >
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr108902" pr="108902" title="no type mismatch on generic types in itds">
<compile files="Subject.java,Observer.java,ObserverProtocol.aj" >
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" pr="108903" title="super call in ITD">
<compile files="pr108903.aj" >
<message kind="error" line="14" text="The method print() is undefined for the type Object"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" pr="109042" title="no unused parameter warnings for synthetic advice args">
<compile files="pr109042.aj" options="-warn:+unusedArgument -warn:+unusedPrivate -warn:+unusedImport -1.5">
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="109486" title="Internal compiler error (ClassParser.java:242)">
<compile files="PR109486.java" >
<message kind="error" line="1" text="The class PR109486 can be either abstract or final, not both"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="109124" title="no verify error with set on inner type">
<compile files="VerifyErrorOnSet.aj" options="-1.5" >
</compile>
<run class="test.VerifyErrorOnSet"/>
<compile files="pr106874.aj" options="-1.5" >
</compile>
- <run class="pr106874"/>
- </ajc-test>
-
+ <run class="pr106874"/>
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="108826" title="cant find type error with generic return type or parameter">
<compile files="pr108826.aj" options="-1.5 -emacssym" >
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="105181" title="no verify error on generic collection member access">
<compile files="pr105181.aj" options="-1.5">
</compile>
<run class="pr105181"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr108903" pr="108903" title="super call in ITD - part 2">
<compile files="com/designpattern/decorator/HeaderDecorator.aj,com/designpattern/decorator/Main.java,com/designpattern/decorator/Order.java,com/designpattern/decorator/OrderDecorator.aj,com/designpattern/decorator/SalesOrder.java" options="-1.5" >
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr103740" pr="103740" title="Compiler failure on at_annotation">
<compile files="AroundAdvice.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void C.m1())' in Type 'C' (AroundAdvice.aj:12) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
<message kind="weave" text="Join point 'method-execution(void C.m3())' in Type 'C' (AroundAdvice.aj:14) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr106554" pr="106554" title="Problem in staticinitialization with pertypewithin aspect">
<compile files="A.aj" options="-showWeaveInfo -1.4">
<message kind="weave" text="Join point 'staticinitialization(void A.<clinit>())' in Type 'A' (A.aj:1) advised by before advice from 'StopsInit' (A.aj:21)"/>
<line text="test = 1"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/SimpleInsuranceFailure" title="raw and generic type conversion with itd cons">
<compile files="" options=" -emacssym, -sourceroots ." >
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="@annotation binding with around advice">
<compile files="AnnotationBinding.aj" options="-1.5"/>
<run class="AnnotationBinding"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="declare parents on a missing type">
<compile files="Pr76374.aj" options="-1.5">
<message kind="warning" line="3" text="no match for this type name"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="parameterized generic methods">
<compile files="Pr109283.aj" options="-1.5 -warn:indirectStatic">
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="call join points in anonymous inner classes">
<compile files="pr104229.aj" options="-1.5">
<message kind="warning" line="54" text="bingo"/>
<ajc-test dir="bugs150" title="default impl of Runnable">
<compile files="pr88900.aj" options="-Xdev:Pinpoint">
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="array clone call join points in 1.4 vs 1.3">
<compile files="pr102933.aj" options="-1.3">
<message kind="warning" line="7" text="a call within pr102933"/>
</compile>
<compile files="pr102933.aj" options="-1.4">
<message kind="warning" line="7" text="a call within pr102933"/>
- </compile>
+ </compile>
<compile files="pr102933.aj" options="-1.5">
<message kind="warning" line="7" text="a call within pr102933"/>
- </compile>
- </ajc-test>
-
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="100195" title="debug info in around advice inlining">
<compile files="pr100195.aj">
</compile>
<run class="pr100195"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" title="weaveinfo message for declare at method on an ITDd method">
<compile files="pr113073.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Type 'C' (pr113073.java) has intertyped constructor from 'D' (pr113073.java:'void C."/>
<message kind="weave" text="'public void C.new(String)' (pr113073.java) is annotated with @Annotation constructor annotation from 'B' (pr113073.java:4)"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr113447" title="no verify error with two this pcds">
<compile files="PR113447.java">
</compile>
<run class="PR113447"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr113447" title="no verify error with two at this pcds">
<compile files="PR113447a.java" options="-1.5">
<message kind="error" text="circular pointcut declaration involving: pc()"/>
<message kind="error" line="20" text="circular pointcut declaration involving: pc2()"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" title="no StackOverflowError with circular pcd in generic aspect - 2">
<compile files="pr115235b.aj" options="-1.5">
<!-- ============================================================================ -->
<!-- ============================================================================ -->
-
+
<!-- atOverride tests with ITDs -->
-
+
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs">
<compile files="AtOverride.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 7">
<compile files="AtOverride7.aj" options="-1.5"/>
</ajc-test>
-
+
<!-- end of atOverride tests with ITDs -->
<ajc-test dir="../docs/dist/doc/examples/introduction" title="introduction sample" vm="1.5">
<ajc-test dir="java5/varargs" title="varargs in constructor sig" vm="1.5">
<compile files="Pr88652.aj" options="-1.5">
<message kind="warning" line="8" text="should match"/>
- <message kind="warning" line="9" text="should match"/>
+ <message kind="warning" line="9" text="should match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/varargs" title="Varargs with .. in pointcut" vm="1.5">
- <compile files="pr93356.aj" options="-1.5">
+ <compile files="pr93356.aj" options="-1.5">
<message kind="warning" line="5" text="a"/>
- <message kind="warning" line="5" text="b"/>
- <message kind="warning" line="5" text="c"/>
- <message kind="warning" line="5" text="d"/>
- <message kind="warning" line="5" text="e"/>
- <message kind="warning" line="5" text="k"/>
+ <message kind="warning" line="5" text="b"/>
+ <message kind="warning" line="5" text="c"/>
+ <message kind="warning" line="5" text="d"/>
+ <message kind="warning" line="5" text="e"/>
+ <message kind="warning" line="5" text="k"/>
<message kind="warning" line="5" text="l"/>
-
+
<message kind="warning" line="4" text="f"/>
- <message kind="warning" line="4" text="g"/>
- <message kind="warning" line="4" text="h"/>
- <message kind="warning" line="4" text="i"/>
- <message kind="warning" line="4" text="j"/>
-
- <message kind="warning" line="7" text="f"/>
+ <message kind="warning" line="4" text="g"/>
+ <message kind="warning" line="4" text="h"/>
+ <message kind="warning" line="4" text="i"/>
+ <message kind="warning" line="4" text="j"/>
+
+ <message kind="warning" line="7" text="f"/>
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" title="star varargs pattern" vm="1.5">
<compile files="StarVarargsPattern.aj" options="-1.5">
<message kind="warning" line="5" text="you used a varargs signature"/>
- <message kind="warning" line="7" text="you used a varargs signature"/>
+ <message kind="warning" line="7" text="you used a varargs signature"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations" title="invalid cons syntax" vm="1.5">
<compile files="SyntaxError.aj" options="-1.5">
<message kind="error" line="3" text="Syntax error on token "new", "method name (not constructor)" expected"/>
<message kind="warning" line="15" text="hasmethod matched on ITD ok"/>
</compile>
</ajc-test>
-
+
<ajc-test title="declare parents : hasfield(..) - 1" dir="hasmember">
<compile files="HasField.aj" options="-XhasMember">
</compile>
</compile>
<run class="HasPrivateFieldInherited"></run>
</ajc-test>
-
+
<!-- Annotation binding tests -->
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 1">
<compile files="CallAnnBinding.aj" options="-1.5"/>
- <run class="CallAnnBinding"/>
+ <run class="CallAnnBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 2">
<compile files="CallAnnBinding2.aj" options="-1.5"/>
- <run class="CallAnnBinding2"/>
+ <run class="CallAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 3">
<compile files="CallAnnBinding3.aj" options="-1.5"/>
- <run class="CallAnnBinding3"/>
+ <run class="CallAnnBinding3"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 4">
<compile files="CallAnnBinding4.aj" options="-1.5"/>
- <run class="CallAnnBinding4"/>
+ <run class="CallAnnBinding4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 5">
<compile files="CallAnnBinding5.aj" options="-1.5"/>
- <run class="CallAnnBinding5"/>
+ <run class="CallAnnBinding5"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 6">
<compile files="CallAnnBinding6.aj" options="-1.5"/>
- <run class="CallAnnBinding6"/>
+ <run class="CallAnnBinding6"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 7">
<compile files="CallAnnBinding7.aj" options="-1.5"/>
- <run class="CallAnnBinding7"/>
+ <run class="CallAnnBinding7"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 1">
<compile files="AtTarget1.aj" options="-1.5"/>
- <run class="AtTarget1"/>
+ <run class="AtTarget1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 2">
<compile files="AtTarget2.aj" options="-1.5"/>
- <run class="AtTarget2"/>
+ <run class="AtTarget2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 3">
<compile files="AtTarget3.aj" options="-1.5"/>
- <run class="AtTarget3"/>
+ <run class="AtTarget3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 4">
<compile files="AtTarget4.aj" options="-1.5"/>
- <run class="AtTarget4"/>
+ <run class="AtTarget4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/usingPackageNames" vm="1.5" title="@target annotation binding 5">
<compile files="MyAspect.aj,MyAnnotation.java,MyClass.java" options="-1.5"/>
- <run class="test.MyClass"/>
+ <run class="test.MyClass"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 1">
<compile files="AtThis1.aj" options="-1.5"/>
- <run class="AtThis1"/>
+ <run class="AtThis1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 2">
<compile files="AtThis2.aj" options="-1.5"/>
- <run class="AtThis2"/>
+ <run class="AtThis2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 3">
<compile files="AtThis3.aj" options="-1.5"/>
- <run class="AtThis3"/>
+ <run class="AtThis3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 4">
<compile files="AtThis4.aj" options="-1.5"/>
- <run class="AtThis4"/>
+ <run class="AtThis4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 5">
<compile files="AtThis5.aj" options="-1.5"/>
- <run class="AtThis5"/>
+ <run class="AtThis5"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 1">
<compile files="AtArgs1.aj" options="-1.5"/>
- <run class="AtArgs1"/>
+ <run class="AtArgs1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 2">
<compile files="AtArgs2.aj" options="-1.5"/>
- <run class="AtArgs2"/>
+ <run class="AtArgs2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 3">
<compile files="AtArgs3.aj" options="-1.5"/>
- <run class="AtArgs3"/>
+ <run class="AtArgs3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 4">
<compile files="AtArgs4.aj" options="-1.5"/>
- <run class="AtArgs4"/>
+ <run class="AtArgs4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 5">
<compile files="AtArgs5.aj" options="-1.5"/>
- <run class="AtArgs5"/>
+ <run class="AtArgs5"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="execution and @annotation">
<compile files="ExecutionAnnBinding1.aj" options="-1.5"/>
- <run class="ExecutionAnnBinding1"/>
+ <run class="ExecutionAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="set and @annotation">
<compile files="FieldAnnBinding1.aj" options="-1.5"/>
- <run class="FieldAnnBinding1"/>
+ <run class="FieldAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="get and @annotation">
<compile files="FieldAnnBinding2.aj" options="-1.5"/>
- <run class="FieldAnnBinding2"/>
+ <run class="FieldAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="get and @annotation with arrays">
<compile files="FieldAnnBinding3.aj" options="-1.5"/>
- <run class="FieldAnnBinding3"/>
+ <run class="FieldAnnBinding3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="cons call and @annotation">
<compile files="CtorAnnBinding1.aj" options="-1.5"/>
- <run class="CtorAnnBinding1"/>
+ <run class="CtorAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="cons exe and @annotation">
<compile files="CtorAnnBinding2.aj" options="-1.5"/>
- <run class="CtorAnnBinding2"/>
+ <run class="CtorAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="staticinit and @annotation">
<compile files="StaticInitBinding.aj" options="-1.5"/>
- <run class="StaticInitBinding"/>
+ <run class="StaticInitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="preinit and @annotation">
<compile files="PreInitBinding.aj" options="-1.5"/>
- <run class="PreInitBinding"/>
+ <run class="PreInitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="init and @annotation">
<compile files="InitBinding.aj" options="-1.5"/>
- <run class="InitBinding"/>
+ <run class="InitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="adviceexecution and @annotation">
<compile files="AdviceExecBinding.aj" options="-1.5"/>
- <run class="AdviceExecBinding"/>
+ <run class="AdviceExecBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="handler and @annotation">
<compile files="HandlerBinding.aj" options="-1.5"/>
- <run class="HandlerBinding"/>
+ <run class="HandlerBinding"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@withincode() and call(* println(..))">
<compile files="WithinCodeBinding1.aj" options="-1.5"/>
<run class="WithinCodeBinding1"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@within">
<compile files="WithinBinding1.aj" options="-1.5"/>
<run class="WithinBinding1"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@within - multiple types">
<compile files="WithinBinding2.aj" options="-1.5"/>
<run class="WithinBinding2"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="packages and no binding">
<compile files="A.java,B.java,Color.java,X.java" options="-1.5"/>
- <run class="a.b.c.A"/>
+ <run class="a.b.c.A"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="packages and binding">
<compile files="A.java,B.java,Color.java,X2.java" options="-1.5"/>
- <run class="a.b.c.A"/>
+ <run class="a.b.c.A"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="binding with static methods">
<compile files="StaticMethods.java" options="-1.5"/>
- <run class="StaticMethods"/>
+ <run class="StaticMethods"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations" vm="1.5" title="annotation matching on call">
<weave classesFiles="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java"
aspectsFiles="AnnotationAspect02.aj"
<message kind="weave" text="Type 'AnnotatedType' (AnnotatedType.java:4) advised by before advice from 'AnnotationAspect02' (aspects.jar!AnnotationAspect02.class:4(from AnnotationAspect02.aj))"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/annotations" vm="1.5" title="at annotation matching">
<weave classesFiles="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java"
aspectsFiles="AnnotationAspect03.aj"
<message kind="warning" line="8" text="@annotation matched here"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/within_code" vm="1.5" title="annotations and within(code)">
<weave classesFiles="TestingAnnotations.java"
aspectsFiles="WithinAndWithinCodeTests.java"
<message kind="warning" line="43" text="@within match on inheritable annotation"/>
<message kind="warning" line="32" text="@withincode match"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/within" vm="1.5" title="annotations and within">
<weave classesFiles="PlainWithin.java"
aspectsFiles="PlainWithinTests.java"
<message kind="warning" line="21" text="positive within match on annotation"/>
<message kind="warning" line="25" text="negative within match on annotation"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="must have runtime retention">
<compile options="-1.5" files="NotRuntimeRetention.aj">
<message kind="error" line="20" text="Annotation type MySourceAnnotation does not have runtime retention"/>
<message kind="error" line="22" text="Annotation type MyAnnotation does not have runtime retention"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="inheritable or not">
<compile options="-1.5" files="TestingAnnotations.java,ThisOrTargetTests.aj">
</compile>
<run class="TestingAnnotations"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="use of @this/target in deow">
<compile options="-1.5" files="TestingAnnotations.java,DeclareEoW.java">
<message kind="error" line="3" text="this() pointcut designator cannot be used in declare statement"/>
<message kind="error" line="5" text="target() pointcut designator cannot be used in declare statement"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/args" vm="1.5" title="@args tests">
<compile options="-1.5" files="TestingArgsAnnotations.java,AtArgsAspect.java">
</compile>
<run class="TestingArgsAnnotations"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/args" vm="1.5" title="use of @args in deow">
<compile options="-1.5" files="TestingArgsAnnotations.java,DeclareEoW.java">
<message kind="error" line="3" text="args() pointcut designator cannot be used in declare statement"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations" vm="1.5" title="compiling an annotation">
<compile options="-1.5" files="SimpleAnnotation.java">
</compile>
<message kind="warning" line="21" text="positive within match on annotation"/>
<message kind="warning" line="25" text="negative within match on annotation"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/attarget" vm="1.5" title="losing annotations...">
<compile options="-1.5" files="Program.java,AtTargetAspect.java">
<message kind="error" line="8" text="can't make inter-type method declarations"/>
<message kind="error" line="13" text="can't make inter-type field declarations"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="no declare parents on annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect04.aj"
<message kind="error" line="10" text="can't use declare parents to make 'java.lang.annotation.Annotation' the parent of type"/>
<message kind="error" line="4" text="can't use declare parents to make annotation type SimpleAnnotation implement an interface"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="declare parents wildcards matching annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect05.aj"
<message kind="warning" line="4" text="annotation type SimpleAnnotation2 matches a declare parents type pattern but is being ignored"/>
<message kind="warning" line="4" text="annotation type SimpleAnnotation matches a declare parents type pattern but is being ignored"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="annotated any pattern">
<compile files="A.java,B.java,C.java,Color.java,X3.java"
options="-1.5">
</compile>
<run class="g.h.i.C"/>
<run class="a.b.c.A"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="annotation not imported">
<compile files="A.java,B.java,C.java,Color.java,X4.java"
options="-1.5">
<message kind="warning" line="6" text="no match for this type name: Color"/>
</compile>
<run class="a.b.c.A"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds">
<compile files="AtItd2.aj" options="-1.5"/>
<run class="AtItd2"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds - values">
<compile files="AtItd3.aj" options="-1.5"/>
<run class="AtItd3"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds - multiple complex annotations">
<compile files="AtItd4.aj" options="-1.5"/>
<run class="AtItd4"/>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="nasty annotation and itds test">
<compile files="AnnotationsAndITDs.aj" options="-1.5">
<!-- first two are ITCs, second two are ITCs annotated via declare @ctor, third is default ctor -->
- <message kind="warning" line="17" text="execution(@SomeAnnotation ...new(..)"/>
- <message kind="warning" line="20" text="execution(@SomeAnnotation ...new(..)"/>
- <message kind="warning" line="45" text="execution(@SomeAnnotation ...new(..)"/>
+ <message kind="warning" line="17" text="execution(@SomeAnnotation ...new(..)"/>
+ <message kind="warning" line="20" text="execution(@SomeAnnotation ...new(..)"/>
+ <message kind="warning" line="45" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="46" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="180" text="execution(@SomeAnnotation ...new(..)"/>
<!-- first four are fields annotated via declare, last two are directly annotated ITDs -->
- <message kind="warning" line="59" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="60" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="71" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="76" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="77" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="59" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="60" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="71" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="76" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="77" text="set(@SomeAnnotation...)"/>
<!-- annotations added via declare -->
- <message kind="warning" line="175" text="si(@SomeAnnotation...)"/>
- <message kind="warning" line="180" text="si(@SomeAnnotation...)"/>
-
- <message kind="warning" line="25" text="execution(@SomeAnnotation ...)"/>
- <message kind="warning" line="28" text="execution(@SomeAnnotation ...)"/>
- <message kind="warning" line="52" text="execution(@SomeAnnotation ...)"/>
- <message kind="warning" line="53" text="execution(@SomeAnnotation ...)"/>
- <!--message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="71" text="set(@SomeAnnotation...)"/-->
+ <message kind="warning" line="175" text="si(@SomeAnnotation...)"/>
+ <message kind="warning" line="180" text="si(@SomeAnnotation...)"/>
+
+ <message kind="warning" line="25" text="execution(@SomeAnnotation ...)"/>
+ <message kind="warning" line="28" text="execution(@SomeAnnotation ...)"/>
+ <message kind="warning" line="52" text="execution(@SomeAnnotation ...)"/>
+ <message kind="warning" line="53" text="execution(@SomeAnnotation ...)"/>
+ <!--message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="71" text="set(@SomeAnnotation...)"/-->
</compile>
<run class="AnnotationsAndITDs">
<stderr>
<line text="@method ITDMe2 (AnnotationsAndITDs.aj:53)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:76)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:77)"/>
-
+
<!--
<line text="method bar has 1 params, first param annotation is @ParamAnnotation"/>
-->
<message kind="error" line="6" text="Syntax error on token ":", "one of type, method, field, constructor" expected"/>
</compile>
</ajc-test>
-
+
<!-- ======================================================================================= -->
<!-- Autoboxing tests -->
<!-- ======================================================================================= -->
<line text="method_takes_Integer=20000"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="integer boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectInteger.aj"
<line text="method_takes_int=40000"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/autoboxing" vm="1.5" title="char boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectChar.aj"
options="-1.5,-showWeaveInfo">
<line text="method_takes_char=4"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/autoboxing" vm="1.5" title="double boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectDouble.aj"
options="-1.5,-showWeaveInfo">
<line text="method_takes_double=400.0"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="float boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectFloat.aj"
<line text="method_takes_float=400.0"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="short boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectShort.aj"
<line text="method_takes_short=400"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="long boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectLong.aj"
<line text="method_takes_long=4000000"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="boolean boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectBoolean.aj"
<line text="method_takes_boolean=false"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="byte boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectByte.aj"
<line text="method_takes_byte=52"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="boxing in after returning">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectAfterReturning.aj"
<line text="Returning Object=10"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<!-- ======================================================================================= -->
<!-- Covariance tests -->
<message kind="error" line="6" text="can't make inter-type field declarations on enum types"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/enums" vm="1.5" title="declare parents and enums">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect03.aj" options="-1.5">
<message kind="error" line="5" text="can't use declare parents to make enum type SimpleEnum implement an interface"/>
<message kind="error" line="8" text="can't use declare parents to alter supertype of enum type SimpleEnum"/>
- <message kind="error" line="11" text="can't use declare parents to make 'java.lang.Enum' the parent of type EnumAspect03$D"/>
+ <message kind="error" line="11" text="can't use declare parents to make 'java.lang.Enum' the parent of type EnumAspect03$D"/>
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- pertypewithin tests -->
<!-- ======================================================================================= -->
-
+
<ajc-test dir="java5/pertypewithin" title="basic ptw test">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java" options="-Xlint:ignore"/>
<run class="p.A">
<line text="callcount = 2"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw hasAspect">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java" options="-Xlint:ignore"/>
<line text="callcount = 3"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/pertypewithin" title="ptw aspectOf">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java" options="-Xlint:ignore"/>
<run class="p.C"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw multi-aspects">
<compile files="P.java,Q.java,R.java"/>
<line text="R reporting 3"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw binary">
<weave classesFiles="G.java" aspectsFiles="H.java" options="-1.4"/>
<line text="advice running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/pertypewithin" title="ptw binary aspect">
<compile files="H.java" outjar="aspects.jar" options="-1.4">
<message kind="warning" line="1" text="no match for this type name: G"/>
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:27) advised by before advice from 'VarargsAspect06' (VarargsAspect06.aj:3)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/suppressedWarnings" vm="1.5" title="suppressing non-matching advice warnings">
<compile files="Suppression1.aj" options="-1.5,-showWeaveInfo">
<message kind="warning" line="13"/>
<message kind="warning" line="21"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/suppressedWarnings" vm="1.5" title="suppressing non-matching advice warnings when multiple source files involved">
<compile files="A.java,A1.aj,A2.aj,A3.aj" options="-1.5,-showWeaveInfo">
<message kind="warning" line="4" file="A1.aj"/>
<message kind="warning" line="11" file="A3.aj"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="XLint warning for advice not applied with cflow(execution)" pr="93345">
<compile options="-Xlint,-1.5" files="PR93345.aj" >
<message kind="warning" line="9" text="advice defined in AnAspect has not been applied [Xlint:adviceDidNotMatch]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="NPE in reflect implementation" pr="94167">
<compile files="PR94167.java"/>
<run class="reflect.PR94167"/>
<compile files="AnnotatingAspects.aj" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotating aspects chapter, ex 2">
<compile files="SuppressAj.aj" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotation pattern matching">
<compile files="AnnotationPatternMatching.aj,org/xyz/OrgXYZAnnotation.java" options="-1.5">
<message kind="warning" line="25" text="@Immutable"/>
<message kind="warning" line="29" text="@Foo @Goo"/>
<message kind="warning" line="29" text="@(Foo || Goo)"/>
<message kind="warning" line="31" text="@(Foo || Goo)"/>
- <message kind="warning" line="33" text="@(org.xyz..*)"/>
+ <message kind="warning" line="33" text="@(org.xyz..*)"/>
</compile>
</ajc-test>
<message kind="warning" line="8" text="@(Immutable || NonPersistent) org.xyz..*"/>
<message kind="warning" line="8" text="@Immutable @NonPersistent org.xyz..*"/>
<message kind="warning" line="6" text="@(@Inherited *) org.xyz..*"/>
- <message kind="warning" line="8" text="@(@Inherited *) org.xyz..*"/>
+ <message kind="warning" line="8" text="@(@Inherited *) org.xyz..*"/>
</compile>
</ajc-test>
<message kind="warning" line="13" text="(@SensitiveData *) org.xyz..*.*"/>
<message kind="warning" line="50" text="@Foo (@Goo *) (@Hoo *).*"/>
<message kind="warning" line="38" text="@Persisted @Classified * *"/>
-
+
<message kind="warning" line="44" text="@Oneway * *(..)"/>
<message kind="warning" line="18" text="@Transaction * (@Persisted org.xyz..*).*(..)"/>
<message kind="warning" line="52" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="53" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="54" text="* *.*(@Immutable *,..)"/>
-
+
<message kind="warning" line="62" text="within(@Secure *)"/>
<message kind="warning" line="63" text="within(@Secure *)"/>
<message kind="warning" line="66" text="staticinitialization(@Persisted *)"/>
<message kind="warning" line="28" text="execution(public (@Immutable *) org.xyz..*.*(..))"/>
<message kind="warning" line="26" text="set(@Cachable * *)"/>
<message kind="warning" line="80" text="handler(!@Catastrophic *)"/>
-
+
</compile>
</ajc-test>
<message kind="error" line="18" text="Annotation type Goo does not have runtime retention"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: @inherited">
<compile files="AnnotationInheritance.aj" options="-1.5">
<message kind="warning" line="16" text="annotatedMethodCall()"/>
<!-- <message kind="warning" line="17" text="annotatedMethodCall()"/> -->
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: deow-ann">
<compile files="DeclaresWithAnnotations.aj,org/xyz/model/Model.java" options="-1.5">
<message kind="warning" line="27" text="Expensive operation called from within performance critical section"/>
<message kind="error" line="26" text="Untrusted code should not call the model classes directly"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: decp-ann">
<compile files="DecpAnnotations.aj" options="-1.5">
</compile>
<line text="Test BusinessBankAccount is secured: PASS"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: dec precedence">
<compile files="PrecedenceAnnotations.aj" options="-1.5">
<line text="P1"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: dec annotation">
<compile files="DeclareAnnotation.aj,org/xyz/model/Model.java" options="-1.5">
<message kind="warning" line="51" text="@Secured"/>
</compile>
<run class="DeclareAnnotation"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/covariance/ajdk" title="ajdk: covariance">
<compile files="AJDKExamples.aj" options="-1.5">
<message kind="warning" line="43" text="call(* whoAreYou())"/>
<message kind="warning" line="44" text="call(B B.whoAreYou())"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/varargs/ajdk" title="ajdk: varargs">
<compile files="AJDKExamples.aj,org/xyz/Foo.java,org/xyz/Goo.java,org/xyz/Hoo.java" options="-1.5">
<message kind="warning" line="8" text="call vararg match"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type 2">
<compile files="DecaType2.java" options="-1.5,-Xlint:ignore" >
</compile>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - with matching pointcut">
<compile files="DecaType3.java" options="-1.5"/>
<run class="DecaType3">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - binary weaving">
<weave classesFiles="BaseTypes.java"
aspectsFiles="DecaTypeBin1.aj,Colored.java"
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - complex annotation - source weaving">
<compile files="BaseTypes.java,DecaTypeBin2.aj" options="-1.5"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - two annotations hit one type - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin3.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
- </run>
+ </run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 1) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 2) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - annotating an already annotated type - binary weaving">
<weave classesFiles="AnnotatedType.java" aspectsFiles="DecaTypeBin4.aj" options="-1.5,-Xlint:ignore"/>
<run class="AnnotatedType">
</stderr>
</run>
</ajc-test>
-
-
+
+
<!--ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin5.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
</stderr>
</run>
</ajc-test-->
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets - source weaving">
<compile files="BaseTypes.java,DecaTypeBin5.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
<message kind="error" line="21" text="The annotation @ColorPkg is disallowed for this location"/>
</compile>
</ajc-test>
-
+
<!--ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets (using type patterns) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin6.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="15" text="A is not a valid target for annotation ColorM"/>
- <message kind="warning" line="16" text="A is not a valid target for annotation ColorC"/>
+ <message kind="warning" line="16" text="A is not a valid target for annotation ColorC"/>
<message kind="warning" line="17" text="A is not a valid target for annotation ColorL"/>
<message kind="warning" line="17" text="B is not a valid target for annotation ColorL"/>
<message kind="warning" line="17" text="C is not a valid target for annotation ColorL"/>
</stderr>
</run>
</ajc-test-->
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets (using type patterns) - source weaving">
<compile files="BaseTypes.java,DecaTypeBin6.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
- <message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
+ <message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
<message kind="error" line="17" text="The annotation @ColorL is disallowed for this location"/>
<message kind="error" line="18" text="The annotation @ColorF is disallowed for this location"/>
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/annotations/declare" title="declare @type - complex decp decAtType interactions - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin7.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - complex decp decAtType interactions - source weaving">
<compile files="BaseTypes.java,DecaTypeBin7.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types - source weaving">
<compile files="BaseTypes.java,DecaTypeBin8.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
- <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
+ <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin8.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
- <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
+ <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
</weave>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types (uses pattern) - source weaving">
<compile files="BaseTypes.java,DecaTypeBin9.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="8" text="A is not a valid target for annotation ColorA"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types (uses pattern) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin9.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="8" text="A is not a valid target for annotation ColorA"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare" title="declare @type - covering enum and class element values - source weaving">
<compile files="EnumAndClassValues.aj,FunkyAnnotations.java" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="FunkyAnnotations">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - covering enum and class element values - binary weaving">
<weave aspectsFiles="EnumAndClassValues.aj" classesFiles="FunkyAnnotations.java" options="-1.5 -Xdev:Pinpoint" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="FunkyAnnotations">
</stderr>
</run>
</ajc-test>
-
-
+
+
<!-- ======================================================================================= -->
<!-- declare annotation (@field) -->
<!-- ======================================================================================= -->
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtField1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two the same on one - source weaving">
<compile files="Base.java,Colored.java,TwoOnOneField.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="int Base.publicIntField - already has an annotation of type Colored"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two the same on one - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="TwoOnOneField.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="int Base.publicIntField - already has an annotation of type Colored"/>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two different on one - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,TwoOnOneField2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</compile>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two different on one - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="TwoOnOneField2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - wrong target - source weaving">
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="warning" line="16" text="does not match because annotation @TypeColoring has @Target{ElementType.TYPE} [Xlint:unmatchedTargetKind]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - source weaving">
<compile files="Base.java,Colored.java,RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,RecursiveFields.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="RecursiveFields.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application (other order) - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,RecursiveFields2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application (other order) - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="RecursiveFields2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<!-- incorrect target type for annotation on field -->
-
+
<!-- incorrect target type for annotation on method -->
<!-- two annotations on one method -->
<!-- two of the same annotation on one method - error -->
<!-- two of the same on one using pattern spec - lint -->
-
+
<!-- need some incorrect signatures in the declare @statements - e.g. declare @constructor: public Base(int): XXX; will blow things up as it uses Base rather than new -->
<!-- incorrect target type for annotation on ctor -->
<!-- two annotations on one ctor -->
<!-- two of the same annotation on one ctor - error -->
<!-- two of the same on one using pattern spec - lint -->
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method - simple source weaving">
<compile files="Base.java,Colored.java,AtMethod1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtMethod1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @constructor - simple source weaving">
<compile files="Base.java,Colored.java,AtCtor1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @constructor - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtCtor1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<!-- These tests verify both @method and @ctor behavior - they are so similar it is OK to have them together... -->
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - wrong target - source weaving">
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="error" line="11" text="The annotation @TypeColoring is disallowed for this location"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - right target - source weaving">
<compile files="Base.java,Colored.java,RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - right target - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<!-- check @method/@ctor/@field recursively applying, can only happen if a pattern for one of them includes an annotation -->
-
-
+
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two the same on one - source weaving">
<compile files="Base.java,Colored.java,TwoOnOneMember.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="void Base.m1() - already has an annotation of type Colored"/>
<message kind="warning" text="void Base.<init>(int) - already has an annotation of type Colored"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two the same on one - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="TwoOnOneMember.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="void Base.m1() - already has an annotation of type Colored"/>
<message kind="warning" text="void Base.<init>(int) - already has an annotation of type Colored"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two different on one - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,TwoOnOneMember2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</compile>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two different on one - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="TwoOnOneMember2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare" title="declare all annotations on one class - source weaving">
<compile files="DeathByAnnotations.aj" options="-1.5,-emacssym" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="p.q.DeathByAnnotations"/>
</ajc-test>
-
+
<!-- ======================================================================================= -->
<!-- annotation binding with ITDs -->
<!-- ======================================================================================= -->
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated">
<compile files="BindingWithAnnotatedItds2.aj" options="-1.5"/>
<run class="BindingWithAnnotatedItds2">
</stderr>
</run>
</ajc-test>
-
+
<!-- ======================================================================================= -->
- <!-- declare annotation targetting ITDs -->
+ <!-- declare annotation targetting ITDs -->
<!-- ======================================================================================= -->
-
-
+
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd method is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds1.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds1">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds2.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds2">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated multiple times via declare">
<compile files="BindingWithDeclaredAnnotationItds3.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds3">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd ctor is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds4.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds4">
</ajc-test>
<!-- ============================================================== -->
-
+
<ajc-test dir="options/aspectpath" title="dirs on aspectpath">
<compile files="MyAspect.aj" options="-d out"/>
<compile files="MyClass.java" options="-aspectpath out">
<compile files="ITDReturningParameterizedType.aj" options="-1.5"/>
<run class="ITDReturningParameterizedType"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding/bugs" title="AtArgs causes a VerifyError: Unable to pop operand off an empty stack" vm="1.5">
<compile files="Test3.java" options="-1.5"/>
<run class="Test3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs/pr91267" title="NPE using generic methods in aspects 1" vm="1.5">
<compile files="TestBug1.aj" options="-1.5"/>
<run class="TestBug1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs/pr91267" title="NPE using generic methods in aspects 2" vm="1.5">
<compile files="TestBug2.aj" options="-1.5"/>
<run class="TestBug2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Generics problem with Set" vm="1.5">
<compile files="PR91053.aj" options="-1.5"/>
<run class="PR91053"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Compilation error on generic member introduction" vm="1.5">
<compile files="PR87282.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Parameterized types on introduced fields not correctly recognized" vm="1.5">
<compile files="PR88606.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="enum called Enum, annotation called Annotation, etc">
<compile files="PR90827.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Internal compiler error">
<compile files="PR86832.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Exploding compile time with if() statements in pointcut">
<compile files="PR94086.aj" options="-1.5"/>
</ajc-test>
-
+
<!-- generic abstract aspects... -->
-
+
<ajc-test dir="java5/generics/genericaspects" title="static pointcut parameterization suite">
<compile files="GenericAspectPointcuts.aj" options="-1.5">
<message kind="warning" line="62" text="kinded-returning-ok"/>
<message kind="warning" line="53" text="handler-ok"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="dynamic pointcut parameterization suite">
<compile files="GenericAspectRuntimePointcuts.aj" options="-1.5">
</compile>
<line text="@annotation-ok @MyAnnotation(value="my-value") execution(X Y.bar())" vm="9,10,11,12,13"/>
<line text="@annotation-ok @MyAnnotation("my-value") execution(X Y.bar())" vm="14+"/>
<line text="this-ok a Y execution(X Y.bar())"/>
- <line text="@this-ok @MyAnnotation(value=on Y) execution(X Y.bar())" vm="1.5,1.6,1.7,1.8"/>
- <line text="@this-ok @MyAnnotation(value="on Y") execution(X Y.bar())" vm="9,10,11,12,13"/>
- <line text="@this-ok @MyAnnotation("on Y") execution(X Y.bar())" vm="14+"/>
+ <line text="@this-ok @MyAnnotation(value=on Y) execution(X Y.bar())" vm="1.5,1.6,1.7,1.8"/>
+ <line text="@this-ok @MyAnnotation(value="on Y") execution(X Y.bar())" vm="9,10,11,12,13"/>
+ <line text="@this-ok @MyAnnotation("on Y") execution(X Y.bar())" vm="14+"/>
<line text="@target-ok @MyAnnotation(value=on Y) execution(X Y.bar())" vm="1.5,1.6,1.7,1.8"/>
<line text="@target-ok @MyAnnotation(value="on Y") execution(X Y.bar())" vm="9,10,11,12,13"/>
<line text="@target-ok @MyAnnotation("on Y") execution(X Y.bar())" vm="14+"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="reference to pointcut in generic class">
<compile files="PointcutsInGenericClasses.aj" options="-1.5">
<message kind="warning" line="16" text="a match"/>
<compile files="DecPGenericTest.aj" options="-1.5">
<message kind="warning" line="16" text="success"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/genericaspects" title="declare precedence parameterized">
<compile files="DecPrecedenceGenericTest.aj" options="-1.5 -Xdev:Pinpoint">
</compile>
<line text="A2"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="declare annotation parameterized">
<compile files="DecAnnGenericTest.aj" options="-1.5">
<message kind="warning" line="22" text="@constructor ok"/>
<message kind="warning" line="24" text="@method ok"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="multi-level generic abstract aspects">
<compile files="MultiLevelGenericTest.aj" options="-1.5">
<message kind="warning" line="23" text="middle match"/>
<message kind="warning" line="23" text="top match"/>
</compile>
- </ajc-test>
+ </ajc-test>
<!-- generic bugs -->
-
+
<ajc-test dir="java5/generics/bugs" title="ITD method with generic arg">
<compile files="PR97763.aj" options="-1.5"/>
<run class="PR97763">
<ajc-test dir="bugs150" title="NPE at ClassScope.java:660 when compiling generic class">
<compile files="PR95993.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Problems resolving type name inside generic class">
<compile files="PR95992.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="100227" title="inner class with generic enclosing class">
<compile files="pr100227.aj" options="-1.5"/>
<run class="pr100227">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="100260" title="methods inherited from a generic parent">
<compile files="pr100260.aj" options="-1.5"/>
<run class="pr100260"/>
</ajc-test>
-
+
<!-- end of generic bugs -->
<!-- generic aspects -->
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 1">
<compile files="GenericAspect1.aj" options="-1.5">
<message kind="error" line="2" text="only abstract aspects can have type parameters"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 2">
<compile files="GenericAspect2.aj" options="-1.5">
<message kind="error" line="9" text="a generic super-aspect must be fully parameterized in an extends clause"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 3">
<compile files="GenericAspect3.aj" options="-1.5"/>
<run class="GenericAspect3">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 4">
<compile files="ParentChildRelationship.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspect with declare warning using type vars">
<compile files="DeclareWarningInGenericAspect.aj" options="-1.5">
<message kind="warning" line="16" text="this method takes a T!"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspect declare parents">
<compile files="DeclareParentsWithTypeVars.aj" options="-1.5">
</compile>
</stderr>
</run>
</ajc-test>
-
+
<!-- ajdk example -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 5 (ajdk)">
<compile files="Blob.java,BlobContainment.aj,ParentChildRelationship.aj" options="-1.5"/>
<run class="BlobContainment"/>
</ajc-test>
-
+
<!-- same as above but all types in one file -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 6 (ajdk)">
<compile files="TheBigOne.java" options="-1.5"/>
<run class="TheBigOne"/>
</ajc-test>
-
+
<!-- end of generic aspects -->
-
+
<!-- generic ITDs -->
-
+
<ajc-test dir="java5/generics/itds" title="ITDs on generic type">
<compile files="Parse5.java" options="-1.5">
<message kind="error" line="9"/>
<message kind="error" line="15"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="itd of non static member">
<compile files="A.java" options="-1.5"/>
<run class="A">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="itd of static member">
<compile files="B.java" options="-1.5"/>
<run class="B">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="itd using type parameter">
<compile files="C.java" options="-1.5"/>
<run class="C">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="static generic method itd">
<compile files="StaticGenericMethodITD.aj" options="-1.5"/>
<run class="StaticGenericMethodITD">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 1">
<compile files="GenericCtorITD1.aj" options="-1.5"/>
<run class="GenericCtorITD1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 2">
<compile files="GenericCtorITD2.aj" options="-1.5"/>
<run class="GenericCtorITD2"/>
<compile files="GenericCtorITD3.aj" options="-1.5"/>
<run class="GenericCtorITD3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 1">
<compile files="ParameterizedMethodITD1.aj" options="-1.5"/>
<run class="ParameterizedMethodITD1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 2">
<compile files="ParameterizedMethodITD2.aj" options="-1.5">
<message kind="error" line="9" text="The method simple(List<? extends Number>) in the type Base is not applicable for the arguments (List<A>)"/>
<compile files="GenericMethodITD1.aj" options="-1.5"/>
<run class="GenericMethodITD1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 2">
<compile files="GenericMethodITD2.aj" options="-1.5">
<message kind="error" line="9" text="Bound mismatch: The generic method simple(List<? extends E>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <E extends Number>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 3">
<compile files="GenericMethodITD3.aj" options="-1.5"/>
<run class="GenericMethodITD3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 4">
<compile files="GenericMethodITD4.aj" options="-1.5"/>
<run class="GenericMethodITD4"/>
<message kind="error" line="10" text="The method simple(List<E>, List<E>) in the type Base is not applicable for the arguments (List<A>, List<B>)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 6">
<compile files="GenericMethodITD6.aj" options="-1.5"/>
<run class="GenericMethodITD6"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 7">
<compile files="GenericMethodITD7.aj" options="-1.5"/>
<run class="GenericMethodITD7"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 8">
<compile files="GenericMethodITD8.aj" options="-1.5">
<message kind="error" line="10" text="The method simple(List<E>, List<? extends E>) in the type Base is not applicable for the arguments (List<Number>, List<String>)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 9">
<compile files="GenericMethodITD9.aj" options="-1.5"/>
<run class="GenericMethodITD9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 10">
<compile files="GenericMethodITD10.aj" options="-1.5">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Comparable<? super R>>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 11">
<compile files="GenericMethodITD11.aj" options="-1.5"/>
<run class="GenericMethodITD11"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 12">
<compile files="GenericMethodITD12.aj" options="-1.5">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Foo<? extends R>>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 13">
<compile files="GenericMethodITD13.aj" options="-1.5"/>
<run class="GenericMethodITD13"/>
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Foo<? super R>>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 15">
<compile files="GenericMethodITD15.aj" options="-1.5"/>
<run class="GenericMethodITD15"/>
</ajc-test>
-
+
<!-- visibility -->
-
+
<ajc-test dir="java5/generics/itds/visibility" title="public itds">
<compile files="PublicITDs.aj" options="-1.5"/>
<run class="PublicITDs"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/visibility" title="private itds">
<compile files="PrivateITDs.aj" options="-1.5"/>
<run class="PrivateITDs"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/visibility" title="package itds">
<compile files="PackageITDs.aj" options="-1.5"/>
<run class="PackageITDs"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/visibility" title="public itds with errors">
<compile files="PublicITDsErrors.aj" options="-1.5">
<message kind="error" line="13" text="The method publicMethod2(List<R>, List<R>) in the type Base is not applicable for the arguments (List<Double>, List<Float>)"/>
<message kind="error" line="15" text="The constructor Base(List<Double>, Map<Integer,String>) is undefined"/>
</compile>
</ajc-test>
-
+
<!-- targetting different types -->
-
+
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting interface">
<compile files="TargettingInterface.aj" options="-1.5"/>
<run class="TargettingInterface"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting aspect">
<compile files="TargettingAspect.aj" options="-1.5"/>
<run class="TargettingAspect"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting class">
<compile files="TargettingClass.aj" options="-1.5"/>
<run class="TargettingClass"/>
</ajc-test>
-
+
<!-- sharing type variables between the ITD and the generic type -->
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 1">
<compile files="FieldA.aj" options="-1.5"/>
- <run class="FieldA"/>
+ <run class="FieldA"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 2">
<compile files="FieldB.aj" options="-1.5">
<message kind="error" line="16" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 3">
<compile files="FieldC.aj" options="-1.5"/>
- <run class="FieldC"/>
+ <run class="FieldC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 4">
<compile files="FieldD.aj" options="-1.5"/>
- <run class="FieldD"/>
+ <run class="FieldD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 5">
<compile files="FieldE.aj" options="-1.5"/>
- <run class="FieldE"/>
+ <run class="FieldE"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 6">
<compile files="FieldF.aj" options="-1.5"/>
- <run class="FieldF"/>
+ <run class="FieldF"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 7">
<compile files="FieldG.aj" options="-1.5"/>
- <run class="FieldG"/>
+ <run class="FieldG"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 8">
<compile files="FieldH.aj" options="-1.5"/>
- <run class="FieldH"/>
+ <run class="FieldH"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 9">
<message kind="error" line="7" text="Type mismatch: cannot convert from List<String> to List<Integer>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -10">
<compile files="FieldJ.aj" options="-1.5"/>
<run class="FieldJ"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -11">
<compile files="FieldK.aj" options="-1.5"/>
<run class="FieldK"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -12">
<compile files="FieldL.aj" options="-1.5"/>
<run class="FieldL"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -13">
<compile files="FieldM.aj" options="-1.5"/>
<run class="FieldM"/>
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -16">
<compile files="FieldP.aj" options="-1.5">
<message kind="error" line="10" text="static intertype field declarations cannot refer to type variables from the target generic type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -17">
<compile files="FieldQ.aj" options="-1.5"/>
<run class="FieldQ"/>
</ajc-test>
-
+
<!-- Now intertype declared methods on generic types that use the target types type vars -->
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A1">
<compile files="MethodA.aj" options="-1.5"/>
- <run class="MethodA"/>
+ <run class="MethodA"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A2">
<compile files="MethodA2.aj" options="-1.5"/>
- <run class="MethodA2"/>
+ <run class="MethodA2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A3">
<compile files="MethodA3.aj" options="-1.5"/>
- <run class="MethodA3"/>
+ <run class="MethodA3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A4">
<compile files="MethodA4.aj" options="-1.5"/>
- <run class="MethodA4"/>
+ <run class="MethodA4"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - B1">
<compile files="MethodB.aj" options="-1.5">
<message kind="error" line="16" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - C1">
<compile files="MethodC.aj" options="-1.5"/>
- <run class="MethodC"/>
+ <run class="MethodC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - D1">
<compile files="MethodD.aj" options="-1.5"/>
- <run class="MethodD"/>
+ <run class="MethodD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - E1">
<compile files="MethodE.aj" options="-1.5"/>
- <run class="MethodE"/>
+ <run class="MethodE"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - F1">
<compile files="MethodF.aj" options="-1.5"/>
- <run class="MethodF"/>
+ <run class="MethodF"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - G1">
<compile files="MethodG.aj" options="-1.5"/>
- <run class="MethodG"/>
+ <run class="MethodG"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - H1">
<compile files="MethodH.aj" options="-1.5"/>
- <run class="MethodH"/>
+ <run class="MethodH"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - I1">
<compile files="MethodI.aj" options="-1.5">
<message kind="error" line="6" text="Type mismatch: cannot convert from List<Integer> to List<String>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - I2">
<compile files="MethodI2.aj" options="-1.5">
<message kind="error" line="7" text="The method m(List<Integer>) in the type Base<Integer> is not applicable for the arguments (List<String>)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - J1">
<compile files="MethodJ.aj" options="-1.5"/>
- <run class="MethodJ"/>
+ <run class="MethodJ"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - K1">
<compile files="MethodK.aj" options="-1.5"/>
- <run class="MethodK"/>
+ <run class="MethodK"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - L1">
<compile files="MethodL.aj" options="-1.5"/>
- <run class="MethodL"/>
+ <run class="MethodL"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - M1">
<compile files="MethodM.aj" options="-1.5"/>
- <run class="MethodM"/>
+ <run class="MethodM"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - M2">
<compile files="MethodM2.aj" options="-1.5"/>
- <run class="MethodM2"/>
+ <run class="MethodM2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - N1">
<compile files="MethodN.aj" options="-1.5">
<message kind="error" line="11" text="Type parameters can not be specified in the ITD target type - the target type I is not generic."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - O1">
<compile files="MethodO.aj" options="-1.5">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
- </compile>
+ </compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - O2">
<compile files="MethodO2.aj" options="-1.5">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
- </compile>
- </ajc-test>
-
+ </compile>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - P1">
<compile files="MethodP.aj" options="-1.5"/>
- <run class="MethodP"/>
+ <run class="MethodP"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - Q1">
<compile files="MethodQ.aj" options="-1.5"/>
- <run class="MethodQ"/>
- </ajc-test>
-
+ <run class="MethodQ"/>
+ </ajc-test>
+
<!-- Now intertype declared constructors on generic types that use the target types type vars -->
-
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - A1">
<compile files="CtorA.aj" options="-1.5"/>
- <run class="CtorA"/>
- </ajc-test>
-
+ <run class="CtorA"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - B1">
<compile files="CtorB.aj" options="-1.5">
<message kind="error" line="15" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - C1">
<compile files="CtorC.aj" options="-1.5"/>
- <run class="CtorC"/>
- </ajc-test>
-
+ <run class="CtorC"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - D1">
<compile files="CtorD.aj" options="-1.5"/>
- <run class="CtorD"/>
- </ajc-test>
-
+ <run class="CtorD"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - E1">
<compile files="CtorE.aj" options="-1.5"/>
- <run class="CtorE"/>
- </ajc-test>
-
+ <run class="CtorE"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - F1">
<compile files="CtorF.aj" options="-1.5"/>
- <run class="CtorF"/>
- </ajc-test>
-
+ <run class="CtorF"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - G1">
<compile files="CtorG.aj" options="-1.5"/>
- <run class="CtorG"/>
- </ajc-test>
-
+ <run class="CtorG"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - H1">
<compile files="CtorH.aj" options="-1.5"/>
- <run class="CtorH"/>
- </ajc-test>
-
+ <run class="CtorH"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - I1">
<compile files="CtorI.aj" options="-1.5"/>
- <run class="CtorI"/>
- </ajc-test>
-
- <!-- putting it all together, fields/methods/ctors and decps -->
-
+ <run class="CtorI"/>
+ </ajc-test>
+
+ <!-- putting it all together, fields/methods/ctors and decps -->
+
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - A">
<compile files="GenericAspectA.aj" options="-1.5"/>
<run class="GenericAspectA"/>
<message kind="weave" text="Extending interface set for type 'Bottom' (GenericAspectZ.aj) to include 'ParentChildRelationship$ChildHasParent<Top>' (GenericAspectZ.aj)"/>
<message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped field from 'ParentChildRelationship' (GenericAspectZ.aj:'ParentChildRelationship$ParentHasChildren ParentChildRelationship$ChildHasParent.parent')"/>
<message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped method from 'ParentChildRelationship' (GenericAspectZ.aj:'ParentChildRelationship$ParentHasChildren ParentChildRelationship$ChildHasParent.getParent()')"/>
- <message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped method from 'ParentChildRelationship' (GenericAspectZ.aj:'void ParentChildRelationship$ChildHasParent.setParent(P)')"/-->
+ <message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped method from 'ParentChildRelationship' (GenericAspectZ.aj:'void ParentChildRelationship$ChildHasParent.setParent(P)')"/-->
</compile>
<run class="GenericAspectZ"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - two">
<compile files="TwoA.java" outjar="twoa.jar" options="-1.5"/>
<compile files="TwoB.java" outjar="twob.jar" options="-1.5"/>
- <compile files="TwoX.java" inpath="twoa.jar;twob.jar" options="-1.5"/>
+ <compile files="TwoX.java" inpath="twoa.jar,twob.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd sharing type variable with generic type">
<compile files="Simple.aj" options="-1.5"/>
<run class="Simple"/>
<compile files="Simple2.aj" options="-1.5"/>
<run class="Simple2"/>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/generics/itds" title="non static generic method itd - 2">
<compile files="NonstaticGenericCtorITD2.aj" options="-1.5"/>
<run class="NonstaticGenericCtorITD2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="reusing type variable letters">
<compile files="ReusingLetters.aj" options="-1.5"/>
<run class="ReusingLetters"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="multiple generic itds in one file">
<compile files="BizarroSignatures.aj" options="-1.5"/>
<run class="BizarroSignatures"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic intertype field declaration, sharing type variable">
<compile files="FieldITDOnGenericType.aj" options="-1.5"/>
<run class="FieldITDOnGenericType">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 1">
<compile files="Parse1.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 4">
<compile files="Parse4.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 5">
<compile files="Parse5.java" options="-1.5">
<message kind="error" line="11" text="Incorrect number of type parameters supplied. The generic type Parse5<T,S> has 2 type parameters, not 3."/>
<message kind="error" line="15" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 6">
<compile files="Parse6.java" options="-1.5"/>
</ajc-test>
-
+
<!-- end of generic ITDs -->
-
+
<!-- generic decps -->
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - simple">
<compile files="Basic.aj" options="-1.5"/>
<run class="Basic"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #1">
<compile files="Basic2.aj" options="-1.5">
<message kind="error" line="11" text="Cannot declare parent I<java.lang.Integer> onto type Basic2 since it already has I<java.lang.String> in its hierarchy"/>
<message kind="error" line="10" text="Cannot declare parent I<java.lang.Integer> onto type Basic2b since it already has I in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #3">
<compile files="Basic2c.aj" options="-1.5">
<message kind="error" line="10" text="Cannot declare parent I onto type Basic2c since it already has I<java.lang.Double> in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #4">
<compile files="Basic2d.aj" options="-1.5"/>
</ajc-test>
<message kind="error" line="2" text="Cannot declare parent I<java.lang.Integer> onto type Base1 since it already has I<java.lang.String> in its hierarchy"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #2">
<weave classesFiles="Base2.java" aspectsFiles="Asp2.aj" options="-1.5,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I<java.lang.Integer> onto type Base2 since it already has I in its hierarchy"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #3">
<weave classesFiles="Base3.java" aspectsFiles="Asp3.aj" options="-1.5,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I onto type Base3 since it already has I<java.lang.Double> in its hierarchy"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #4">
<weave classesFiles="Base4.java" aspectsFiles="Asp4.aj" options="-1.5,-showWeaveInfo"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - incorrect number of type parameters">
<compile files="Basic3.aj" options="-1.5">
<message kind="error" line="10" text="Type pattern does not match because the wrong number of type parameters are specified: Type I requires 1 parameter(s)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - specifying bounds">
<compile files="Basic4.aj" options="-1.5"/>
<run class="Basic4"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - specifying bounds but breaking them">
<compile files="Basic5.aj" options="-1.5">
<message kind="error" line="7" text="Type java.lang.String does not meet the specification for type parameter 1 (T extends java.lang.Number) in generic type I"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - with parameterized on the target">
<compile files="Basic6.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Extending interface set for type 'Basic6' (Basic6.aj) to include 'K<java.lang.Integer>' (Basic6.aj)"/>
</ajc-test>
<!-- end of generic decps -->
-
+
<!-- generics/itds and binary weaving -->
-
+
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - A">
<compile files="TestA_generictype.java" outjar="code.jar" options="-1.5"/>
<compile files="TestA_aspect.aj,TestA_class.java" inpath="code.jar" options="-1.5"/>
<compile files="TestB_aspect1.aj,TestB_aspect2.aj,TestB_class.java" inpath="code.jar" options="-1.5"/>
<run class="TestB_class"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 1">
<compile files="BaseClass.java" outjar="code.jar" options="-1.5"/>
<compile files="A1.aj" inpath="code.jar" options="-1.5"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 2">
<compile files="BaseClass.java,A1.aj" outjar="code.jar" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'BaseClass' (BaseClass.java) has intertyped field from 'A1' (A1.aj:'java.util.List<java.lang.String> BaseClass.list1')"/>
</ajc-test>
<!-- end of generics/itds and binary weaving -->
-
+
<!-- generics/itds and bridge methods -->
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 1">
<compile files="Sub1.java,Super1.java,X1.aj" options="-1.5"/>
<run class="X1"/>
<compile files="X2.aj,Util.java" inpath="code.jar" options ="-1.5"/>
<run class="X2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 3">
<compile files="Sub3.java,Super3.java,X3.aj" options="-1.5"/>
<run class="X3"/>
<compile files="X3.aj" inpath="code.jar" options ="-1.5"/>
<run class="X3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 4">
<compile files="Sub4.java,Super4.java,X4.aj" options="-1.5"/>
<run class="X4"/>
<compile files="X4.aj" inpath="code.jar" options ="-1.5"/>
<run class="X4"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - one">
<compile files="OneA.java" outjar="onea.jar" options="-1.5"/>
<compile files="OneB.java" outjar="oneb.jar" options="-1.5"/>
- <compile files="OneX.java" inpath="onea.jar;oneb.jar" options="-1.5"/>
+ <compile files="OneX.java" inpath="onea.jar,oneb.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - two">
<compile files="TwoA.java" outjar="twoa.jar" options="-1.5"/>
<compile files="TwoB.java" outjar="twob.jar" options="-1.5"/>
- <compile files="TwoX.java" inpath="twoa.jar;twob.jar" options="-1.5"/>
+ <compile files="TwoX.java" inpath="twoa.jar,twob.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - three">
<compile files="ThreeA.java" outjar="threea.jar" options="-1.5"/>
<compile files="ThreeB.java" outjar="threeb.jar" options="-1.5"/>
- <compile files="ThreeX.java" inpath="threea.jar;threeb.jar" options="-1.5"/>
+ <compile files="ThreeX.java" inpath="threea.jar,threeb.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="abstract intertype methods and covariant returns">
<compile files="pr91381.aj" options="-1.5"/>
<run class="pr91381"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" title="abstract intertype methods and covariant returns - error">
<compile files="pr91381_2.aj">
<message kind="error" line="15" text="The return type is incompatible with A.foo()"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridging with covariance 1 - normal">
<compile files="Bridging1.aj,Util.java" options="-1.5"/>
<line text="D D.method1()"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridging with covariance 1 - itd">
<compile files="BridgingITD1.aj,Util.java" options="-1.5"/>
<run class="BridgingITD1">
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 1 - normal">
<compile files="Bridging2.aj,Util.java" options="-1.5"/>
- <run class="Bridging2">
+ <run class="Bridging2">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.next() [BridgeMethod]"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 1 - itd">
<compile files="BridgingITD2.aj,Util.java" options="-1.5"/>
- <run class="BridgingITD2">
+ <run class="BridgingITD2">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.next() [BridgeMethod]"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 2 - normal">
<compile files="Bridging3.aj,Util.java" options="-1.5"/>
- <run class="Bridging3">
+ <run class="Bridging3">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.id(java.lang.Object) [BridgeMethod]"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 2 - itd">
<compile files="BridgingITD3.aj,Util.java" options="-1.5"/>
- <run class="BridgingITD3">
+ <run class="BridgingITD3">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.id(java.lang.Object) [BridgeMethod]"/>
<run class="pr91381"/>
</ajc-test>
<!-- end of generics/itds and bridge methods -->
-
-
+
+
<!-- generics and pointcuts -->
<ajc-test dir="java5/generics/pointcuts" title="handler pcd and generics / type vars">
<message kind="error" line="27" text="Syntax error on token"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="annotation pcds with parameterized types">
<compile files="ParameterizedTypesInAtPCDs.aj" options="-1.5">
<message kind="error" line="3" text="Syntax error on token"/>
<message kind="error" line="13" text="Syntax error on token"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="annotation patterns with parameterized types">
<compile files="ParameterizedTypesInAnnotationPatterns.aj" options="-1.5">
<message kind="error" line="5" text="is not an annotation type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized types">
<compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithParameterizedTypes.aj" options="-1.5">
<message kind="error" line="4" text="no static initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="14" text="no static initialization join points for parameterized types, use raw type instead"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized type matching">
<compile files="GenericInterface.java,GenericImplementingClass.java,ConcreteImplementingClass.java,ConcreteExtendingClass.java,StaticInitializationWithParameterizedTypesMatching.aj" options="-1.5">
<message kind="warning" line="1" text="clinit(GenericInterface<Double>+)"/>
<message kind="warning" line="19" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericInterface requires 1 parameter(s)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization with generic types">
<compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithGenericTypes.aj" options="-1.5">
<message kind="warning" line="1" text="one generic param, correct bounds"/>
<message kind="warning" line="24" text="Type N extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericImplementingClass"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization with generic types - advanced">
<compile files="StaticInitializationWithGenericTypesAdvanced.aj" options="-1.5">
<message kind="warning" line="76" text="simple match"/>
<message kind="warning" line="27" text="Type Z extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="within pcd with various parameterizations and generic types - errors">
<compile files="WithinPointcutMatching.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="9" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with raw declaring type pattern">
<compile files="InitializationPointcutMatchingDeclaringType.aj" options="-1.5">
<message kind="warning" line="10" text="generic/param init matching ok"/>
<message kind="warning" line="10" text="generic/param preinit matching ok"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with parameterized parameter types">
<compile files="InitializationPointcutMatchingParamTypes.aj" options="-1.5">
<message kind="warning" line="51" text="the really wild show"/>
<message kind="warning" line="52" text="the really wild show"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="withincode with various parameterizations and generic types - errors">
<compile files="WithincodePointcutMatching.aj" options="-1.5">
<message kind="warning" line="80" text="parameterized match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw type matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawTypeMatching.aj" options="-1.5">
<message kind="warning" line="4" text="execution(* GenericInterface.*(..))"/>
<message kind="warning" line="5" text="execution(* GenericInterface.*(..))"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw signature matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawSignatureMatching.aj" options="-1.5">
<message kind="warning" line="4" text="execution(* GenericInterface.asInt(Number))"/>
<message kind="warning" line="5" text="execution<T>(* GenericInterface<T extends Number>.asInt(T))"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="call with various parameterizations and generic types - errors">
<compile files="CallPointcutMatchingErrorCases.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="6" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="call with various parameterizations and generic types - matching">
<compile files="CallPointcutMatchingParamAndReturnTypes.aj" options="-1.5">
<message kind="warning" line="7" text="raw param type matching in call ok"/>
<message kind="warning" line="87" text="parameterized match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="call with bridge methods">
<compile files="CallWithBridgeMethods.aj" options="-1.5">
<!-- see testcode
-->
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/generics/pointcuts" title="args with raw type and generic / parameterized sigs">
<compile files="RawArgs.aj" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="args with generic wildcard super">
<compile files="ArgsListOfSomethingSuper.aj" options="-1.5">
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="generic method matching">
<compile files="GenericMethods.aj" options="-1.5">
<message kind="warning" line="19" text="static generic method match"/>
<message kind="warning" line="34" text="static generic method match"/>
- <message kind="warning" line="24" text="instance generic method match"/>
- <message kind="warning" line="39" text="instance generic method match"/>
+ <message kind="warning" line="24" text="instance generic method match"/>
+ <message kind="warning" line="39" text="instance generic method match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="generic wildcards in signature matching">
<compile files="GenericWildcardsInSignatureMatching.aj" options="-1.5">
<message kind="warning" line="5" text="set of a list"/>
<message kind="warning" line="15" text="super wild match"/>
</compile>
</ajc-test>
-
+
<!-- end of generics and pointcuts tests -->
<ajc-test dir="java5/generics/afterAdvice" title="after throwing with parameterized throw type">
<line text="returning(List<String> matched at call(List MustBeString.listit(List))"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/afterAdvice" title="after returning with parameterized type and wildcards">
<compile files="AfterReturningParameterizedWithWildcards.aj" options="-1.5">
<message kind="warning" line="10" text="unchecked match of List<Double> with List when argument is an instance of List"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard">
<compile files="AfterReturningListOfSomething.aj" options="-1.5">
<!-- warning is unchecked match of List<?> from line 28 onto line 15. -->
<line text="super wild type matches execution(HashSet AfterReturningListOfSomething.setOf(HashSet))"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard extends">
<compile files="AfterReturningListOfSomethingExtends.aj" options="-1.5">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard super">
<compile files="AfterReturningListOfSomethingSuper.aj" options="-1.5">
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test title="ajdk notebook: erasure matching examples" dir="java5/generics/ajdk">
<compile files="ErasureMatching.aj" options="-1.5">
<message kind="warning" line="18" text="static generic method match"/>
<message kind="warning" line="28" text="field in generic type match"/>
</compile>
</ajc-test>
-
+
<ajc-test title="ajdk notebook: simple parameterized type matching examples" dir="java5/generics/ajdk">
<compile files="SimpleParameterizedTypeExamples.aj" options="-1.5">
- <message kind="warning" line="34" text="get myStrings 1"/>
- <message kind="warning" line="34" text="get myStrings 2"/>
- <message kind="warning" line="38" text="get myStrings 1"/>
- <message kind="warning" line="38" text="get myStrings 2"/>
- <message kind="warning" line="35" text="get myFloats 1"/>
- <message kind="warning" line="35" text="get myFloats 2"/>
- <message kind="warning" line="35" text="get myFloats 3"/>
- <message kind="warning" line="34" text="getter 1"/>
- <message kind="warning" line="35" text="getter 1"/>
- <message kind="warning" line="34" text="getter 2"/>
- <message kind="warning" line="35" text="getter 2"/>
- <message kind="warning" line="34" text="getter 3"/>
- <message kind="warning" line="35" text="getter 4"/>
- <message kind="warning" line="25" text="call 1"/>
- <message kind="warning" line="25" text="call 2"/>
- </compile>
- </ajc-test>
-
+ <message kind="warning" line="34" text="get myStrings 1"/>
+ <message kind="warning" line="34" text="get myStrings 2"/>
+ <message kind="warning" line="38" text="get myStrings 1"/>
+ <message kind="warning" line="38" text="get myStrings 2"/>
+ <message kind="warning" line="35" text="get myFloats 1"/>
+ <message kind="warning" line="35" text="get myFloats 2"/>
+ <message kind="warning" line="35" text="get myFloats 3"/>
+ <message kind="warning" line="34" text="getter 1"/>
+ <message kind="warning" line="35" text="getter 1"/>
+ <message kind="warning" line="34" text="getter 2"/>
+ <message kind="warning" line="35" text="getter 2"/>
+ <message kind="warning" line="34" text="getter 3"/>
+ <message kind="warning" line="35" text="getter 4"/>
+ <message kind="warning" line="25" text="call 1"/>
+ <message kind="warning" line="25" text="call 2"/>
+ </compile>
+ </ajc-test>
+
<ajc-test title="ajdk notebook: mixed parameterized types and generic methods" dir="java5/generics/ajdk">
<compile files="MixedParameterizedAndTypeVariables.aj" options="-1.5">
<message kind="warning" line="13" text="erasure match"/>
<message kind="warning" line="11" text="match"/>
</compile>
</ajc-test>
-
+
<ajc-test title="ajdk notebook: args examples" dir="java5/generics/ajdk">
<compile files="ArgsExamples.aj" options="-1.5">
<message kind="warning" line="15" text="unchecked match of List<Double> with List<? extends Number> when argument is an instance of List at join point method-execution(void C.goo(List<? extends Number>)) [Xlint:uncheckedArgument]"/>
<line text="args List of Double"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test title="ajdk notebook: after returning examples" dir="java5/generics/ajdk">
<compile files="AfterReturningExamples.aj" options="-1.5">
<message kind="warning" line="20" text="unchecked match of List<Double> with List<? extends Number>"/>
<line text="a1 5.0"/>
<line text="a1 10.0"/>
<line text="a3 5.0"/>
- <line text="a3 10.0"/>
+ <line text="a3 10.0"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test title="ajdk notebook: args and wildcards examples" dir="java5/generics/ajdk">
<compile files="WildcardArgsExamples.aj" options="-1.5">
<message kind="warning" line="6" text="unchecked match of List<? extends Number> with List"/>
<line text="advice match 2 at call(void C.goo4(List))"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test title="ajdk notebook: pointcut in generic class example" dir="java5/generics/ajdk">
<compile files="PointcutInGenericClassExample.aj" options="-1.5">
<message kind="warning" line="23" text="parameterized with C"/>
<message kind="warning" line="29" text="parameterized with D"/>
</compile>
- </ajc-test>
+ </ajc-test>
<!-- ============================================================== -->
<!-- End of generics tests -->
<!-- ============================================================== -->
-
+
<ajc-test dir="bugs150/pr98901" title="public method with declare @method">
<compile files="Case01.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B01">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Compiler error due to a wrong exception check in try blocks">
<compile files="pr82989.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public method on the aspect that declares @method on it">
<compile files="Case02.aj" options="-1.5 -Xlint:error"/>
<run class="B02">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated method">
<compile files="Case03.aj" options="-1.5 -Xlint:error"/>
<run class="B03">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD method with declare @method">
<compile files="Case04.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B04">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself method with declare @method">
<compile files="Case06.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B06">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself method">
<compile files="Case07.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B07">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public method on an Interface with declare @method">
<compile files="Case08.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B08">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD method onto an Interface with declare @method">
<compile files="Case10.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B10">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated ITD method onto an Interface">
<compile files="Case11.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B11">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract method with declare @method">
<compile files="Case12.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B12">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract annotated method">
<compile files="Case14.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B14">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method with declare @method">
<compile files="Case15.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B15">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract ITD-on-itself method with declare @method">
<compile files="Case17.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B17">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD-on-itself method">
<compile files="Case18.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B18">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract method on an Interface with declare @method">
<compile files="Case19.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B19">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method onto an Interface with declare @method">
<compile files="Case21.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B21">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD method onto an Interface">
<compile files="Case22.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B22">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public field with declare @field">
<compile files="Case23.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B23">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public field on the aspect that declares @field on it">
<compile files="Case24.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated field">
<compile files="Case25.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B25">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD field with declare @field">
<compile files="Case26.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B26">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself field with declare @field">
<compile files="Case28.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B28">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself field">
<compile files="Case29.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B29">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Unable to build shadows">
<compile files="pr109728.java" options="-1.5"/>
</ajc-test>
<message kind="error" line="10" text="Cannot declare parent B<java.lang.Number> onto type C since it already has A<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 2">
<compile files="Case2.java" options="-1.5">
<message kind="error" line="8" text="Cannot declare parent A<java.lang.Number> onto type C since it already has A<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 3">
<compile files="Case3.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 4">
<compile files="Case4.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110927" title="cant create signature attribute">
<compile files="Case1.java" options="-1.5"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr72834" title="broken dispatch">
<compile files="Trouble.java">
<message kind="error" line="9" text="The method getName() is undefined for the type A"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr73856" title="missing accessor">
<compile files="MissingAccessor.java"/>
<run class="MissingAccessor"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr90143" title="cant call super methods">
<compile files="A.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="cunning declare parents">
<compile files="pr92311.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="ITD varargs problem">
<compile files="pr110906.aj" options="-1.5"/>
<run class="pr110906">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="generic itds and abstract method error">
<compile files="pr102357.aj"/>
<run class="pr102357"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="unexpected error unboundFormalInPC">
<compile files="pr112027.aj"/>
</ajc-test>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr112602" title="ClassCastException with generic wildcard">
<compile files="GenericInterface.java,Implementation.java" options="-1.5,-emacssym"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 1">
<compile files="Case1.java" options="-1.5">
<message kind="warning" line="27" text="no match for this type name: Branch [Xlint:invalidAbsoluteTypeName]"/>
<message kind="error" line="39" text="List cannot be resolved to a type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 2">
<compile files="Case2.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 3">
<compile files="Case3.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 4">
<compile files="Case4.java" options="-1.5"/>
</ajc-test>
<message kind="error" line="15" text="can't override java.util.List<java.lang.String> I.foo() with java.util.List<java.lang.Integer> A.foo() return types don't match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 6">
<compile files="Case6.java" options="-1.5">
<message kind="error" line="8" text="N cannot be resolved to a type"/>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 7">
<compile files="Case7.java" options="-1.5"/>
<run class="Case7">
- <stderr>
+ <stderr>
<line text="in=hello out=hello"/>
<line text="in=35 out=35"/>
<line text="in=[] out=[]"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<!-- generic ITDs -->
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design A">
<compile files="DesignA.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design B">
<compile files="DesignB.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design C">
<compile files="DesignC.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design D">
<compile files="DesignD.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design E">
<compile files="DesignE.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design F">
<compile files="DesignF.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design G">
<compile files="DesignG.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr116626" title="NPE in WeavingAdaptor">
<compile files="com/foo/bar/Test.java, TestAspect.aj" options="-1.5"/>
<run class="com.foo.bar.Test" ltw="aop.xml"
>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java, accounts/recovery/Recovery.aj"/>
<run class="services.account.StockQuoteServiceTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call not self">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java, accounts/recovery/RecoveryNotSelf.aj"/>
<run class="services.account.StockQuoteServiceTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call using -XterminateAfterCompilation and LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj" options="-XterminateAfterCompilation"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call using LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call not self using LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/RecoveryNotSelf.aj" options="-1.4"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call self and not self using LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj, accounts/recovery/RecoveryNotSelf.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call using LTW and -XnoInline">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr121385" title="override protected pointcut in aop.xml concrete aspect">
<compile files="Hello.java"/>
<compile files="World.aj, ConcreteWorld.aj" options="-1.4"/>
</run>
</ajc-test>
-</suite>
\ No newline at end of file
+</suite>
<compile files="Deow.aj" options="-1.5">
</compile>
<run class="Deow"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/ataspectj/annotationGen" title="runtime pointcut resolution referencing compiled pointcuts">
<compile files="PCLib.aj,RuntimePointcuts.java" options="-1.5">
</compile>
- <run class="RuntimePointcuts" classpath=".;../lib/bcel/bcel.jar" ltw=""/>
- </ajc-test>
+ <run class="RuntimePointcuts" classpath=".,../lib/bcel/bcel.jar" ltw=""/>
+ </ajc-test>
<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for decp">
<compile files="DeclareParentsTest.aj" options="-1.5, -outxml">
</compile>
<run class="DeclareParentsTest" ltw=""/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for decp 2">
<compile files="DeclareParentsTestAdvanced.aj" options="-1.5, -outxml">
</compile>
<run class="a.b.c.DeclareParentsTestAdvanced" ltw=""/>
</ajc-test>
-
+
<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for decs">
<compile files="DeclareSoftTest.aj" options="-1.5">
</compile>
<run class="DeclareSoftTest"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for dec precedence">
<compile files="DeclarePrecedenceTest.aj" options="-1.5">
</compile>
<run class="DeclarePrecedenceTest"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for dec annotation">
<compile files="DeclareAnnotationTest.aj" options="-1.5">
</compile>
<run class="DeclareAnnotationTest"/>
</ajc-test>
-
+
<ajc-test dir="java5/ataspectj/annotationGen" title="ann gen for itds">
<compile files="ITDTest.aj" options="-1.5, -outxml -Xlint:ignore -makeAjReflectable">
</compile>
<run class="a.b.c.ITDTest" ltw=""/>
- </ajc-test>
-</suite>
\ No newline at end of file
+ </ajc-test>
+</suite>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr122253" title="aspects14 - persingleton">
<compile files="Singleton.java"/>
<run class="Singleton">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr122253" title="aspects14 - perthis">
<compile files="PerThis.java"/>
<run class="PerThis">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr122253" title="aspects14 - pertypewithin">
<compile files="PerTypeWithin.java"/>
<run class="PerTypeWithin">
</stderr>
</run>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs152/pr148536" title="NPE for unknown annotation">
<compile files="Bug.java" options="-1.5">
<message kind="error" line="2" text="SomeAnnotation cannot be resolved to a type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr148537" title="classcast annotation value">
<compile files="MyClass.java,MyAspect.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr148545" title="nosuchmethoderror for privileged aspect">
<compile files="MyClass.java,MyAspect.java,MyAnnotation.java,MyEnum.java" options="-1.5"/>
<run class="MyClass"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr148545" title="nosuchmethoderror for privileged aspect - 2">
<compile files="MyClass.java,MyAspect2.java,MyAnnotation.java,MyEnum.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void MyClass.test())' in Type 'MyClass' (MyClass.java:8) advised by around advice from 'MyAspect2' (MyAspect2.java:5)"/>
<compile files="Pair.java" options="-1.5"/>
<compile files="Test.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr126355" title="bizarre generic error with itds - 2">
<compile files="Pair.java" options="-1.5"/>
<compile files="Test.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr145950" title="fails to discover Serializable">
<compile files="Indirect.java" options="-1.5 -XaddSerialVersionUID"/>
<run class="Indirect">
<compile files="TopLevelType.java" options="-1.5"/>
<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/pr132349" title="ITD on inner type of generic type - 3">
<compile files="TopLevelType3.java" options="-1.5">
<message kind="error" line="12" text="Cannot make inter-type declarations on parameterized types"/>
<message kind="error" line="7" text="The method someMethod() is undefined for the type TopLevelType3.NestedType"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr135865" title="misbehaving declare annotation">
<compile files="B.java,A.java" options="-1.5 -Xlint:ignore">
<!--message kind="weave" text="Join point 'method-call(void B.foo())' in Type 'A' (A.java:32) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr135865" title="misbehaving declare annotation - 2">
<compile files="A.java,B.java" options="-1.5 -Xlint:ignore">
<!--message kind="weave" text="Join point 'method-call(void B.foo())' in Type 'A' (A.java:32) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr129704" title="annotations and generics leading to BCException">
<compile files="A.java" options="-1.5"/>
<run class="A">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr136026" title="verifyerror">
<compile files="CflowOrder.java" options="-1.5"/>
<run class="CflowOrder"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr136026" title="verifyerror - 2">
<compile files="CflowOrderOriginal.java" options="-1.5"/>
<run class="bugs.CflowOrderOriginal">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr136258" title="stack overflow">
<compile files="StatisticsTypeImpl.java" options="-1.5"/>
<run class="StatisticsTypeImpl"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138384" title="method too big">
<compile files="BigMethod.java" options="-1.5"> <!-- will be 67628 bytes in the big method -->
<message kind="error" line="1" text="problem generating method BigMethod.i_am_a_big_method : Code size too big: 67629"/>
</compile>
<!--run class="BigMethod"/-->
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138798" title="atWithinCodeBug">
<compile files="ErrorHandling.aj" options="-1.5"/>
<run class="ErrorHandling">
<stderr>
<line text="Caught in foo"/>
</stderr>
- </run>
+ </run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138158" title="not at withincode - 1">
<compile files="Boo.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(void Boo.m())' in Type 'Boo' (Boo.java:9) advised by before advice from 'X' (Boo.java:19)"/>
</compile>
<run class="Boo"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138158" title="not at within - 3">
<compile files="Doo.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Soo' (Doo.java:20) advised by before advice from 'X' (Doo.java:25)"/>
</compile>
<run class="Doo"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138158" title="not at withincode - 2">
<compile files="Foo.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Foo' (Foo.java:14) advised by before advice from 'X' (Foo.java:26)"/>
</compile>
<run class="Foo"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137568" title="complicated generics declaration">
<compile files="C.java" options="-emacssym -1.5"/>
<run class="C"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138143" title="npe on duplicate method with ataj">
<compile files="AspectClass.java" options="-1.5">
<message kind="error" line="7" text="Duplicate method incomingMessage() in type AspectClass"/>
<message kind="warning" line="11" text="no match for this type name: Incoming [Xlint:invalidAbsoluteTypeName]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137496" title="pointcuts and generics - B">
<compile files="B.java" options="-1.5 -showWeaveInfo">
<!--message kind="weave" text="Join point 'method-call(java.lang.String C.pm(java.lang.String))' in Type 'B' (B.java:20) advised by before advice from 'X' (B.java:26)"/-->
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137496" title="pointcuts and generics - D">
<compile files="D.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(java.lang.String CImpl.pm(java.lang.String))' in Type 'D' (D.java:20) advised by before advice from 'X' (D.java:26)"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137496" title="pointcuts and generics - E">
<compile files="E.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(java.lang.Object C.pm(java.lang.Object))' in Type 'E' (E.java:18) advised by before advice from 'X' (E.java:23)"/>
</stderr>
</run>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs152/pr137496" title="pointcuts and generics - F">
<compile files="F.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(java.lang.Object C.pm(java.lang.Object))' in Type 'F' (F.java:18) advised by before advice from 'X' (F.java:23)"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137496" title="pointcuts and generics - G">
<compile files="G.java" options="-1.5 -showWeaveInfo">
<message kind="warning" line="23" text="advice defined in X has not been applied [Xlint:adviceDidNotMatch]"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137496" title="pointcuts and generics - H">
<compile files="H.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(java.lang.Object C.pm(java.lang.Object))' in Type 'H' (H.java:20) advised by around advice from 'X' (H.java:26)"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/binaryDecp" title="incorrect overrides evaluation - 1.3">
<compile files="SubClassLoader.java,SubSubClassLoader.java" options="-1.3" outjar="lib.jar"/>
<compile files="X.aj" inpath="lib.jar" options="-showWeaveInfo">
<message kind="weave" text="Setting superclass of type 'SubSubClassLoader' (SubSubClassLoader.java) to 'SubClassLoader' (X.aj)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/binaryDecp" title="incorrect overrides evaluation - 1.4">
<compile files="IsItSynthetic.java" options="-1.5"/>
<compile files="Top.java" options="-source 1.5 -target 1.5" outjar="a.jar"/>
<compile files="Bottom.java" classpath="$sandbox/a.jar" options="-source 1.4 -target 1.4" outjar="b.jar"/>
<compile files="Middle.java" classpath="$sandbox/a.jar" options="-source 1.4 -target 1.4" outjar="c.jar"/>
- <compile files="X2.aj" classpath="$sandbox/a.jar;$sandbox/b.jar;$sandbox/c.jar" options="-Xlint:ignore" outjar="x.jar"/>
- <run class="Bottom" classpath="a.jar;b.jar;c.jar;x.jar" ltw="aop.xml"/>
+ <compile files="X2.aj" classpath="$sandbox/a.jar,$sandbox/b.jar,$sandbox/c.jar" options="-Xlint:ignore" outjar="x.jar"/>
+ <run class="Bottom" classpath="a.jar,b.jar,c.jar,x.jar" ltw="aop.xml"/>
<!--message kind="weave" text="Setting superclass of type 'Bottom' (Bottom.java) to 'Middle' (X2.aj)"/-->
</ajc-test>
-
+
<ajc-test dir="bugs152/binaryDecp" title="incorrect overrides evaluation - 1.5">
<compile files="SubClassLoader.java,SubSubClassLoader.java" options="-1.5" outjar="lib.jar"/>
<compile files="X.aj" inpath="lib.jar" options="-showWeaveInfo">
<message kind="weave" text="Setting superclass of type 'SubSubClassLoader' (SubSubClassLoader.java) to 'SubClassLoader' (X.aj)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr129282" title="no unnecessary declaration of thrown exception warning - 1">
<compile files="MethodExecution.aj" options="-warn:+unusedThrown">
<message kind="warning" line="17" text="no foos please"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138219" pr="138219" title="Can't use a FQ Reference pointcut in any pointcut expression referenced by a per-clause">
<compile files="PerThisWithReference.aj,SomeOtherType.aj,RegularPCWithReference.aj" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr130722" pr="130722" title="FQ Reference pointcut from perclause ref pc">
<compile files="test/Test.java,test/PointcutConsumer.aj,test1/PointcutProvider.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr138220" pr="138220" title="@Aspect with reference pointcut in perclause">
<compile files="AtAspectWithPerClause.aj" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr144465" title="ltw with serialversionUID creation">
<compile files="BigHorribleClass.java"/>
<compile files="AnAspect.java" options="-1.4"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr125480" title="aop.xml aspect inheriting abstract method ">
<compile files="HelloWorld.java"/>
<compile files="AbstractMethods.aj, ConcreteMethods.aj" options="-1.5"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr125480/case2" title="aop.xml aspect inheriting abstract method - code style">
<compile files="HelloWorld.java"/>
<compile files="AbstractMethods.aj, ConcreteMethods.aj" options="-1.5"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr142466" title="aop.xml aspect inheriting but not concretizing abstract method">
<compile files="HelloWorld.java"/>
<compile files="AbstractMethods.aj, ConcreteMethods.aj" options="-1.5"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr142466/case2" title="aop.xml aspect inheriting but not concretizing abstract method - 2">
<compile files="HelloWorld.java"/>
<compile files="AbstractMethods.aj, ConcreteMethods.aj" options="-1.5"/>
<line text="Hello World!"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs152/pr138223" pr="138223" title="Double at annotation matching (no binding)">
<compile files="DoubleAnnotationMatching.aj" options="-1.5">
</ajc-test>
<ajc-test dir="bugs152/pr138286" pr="138286" title="No ClassCastException with perThis">
- <compile files="A.aj" options="-1.5 -showWeaveInfo">
+ <compile files="A.aj" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'initialization(void A.<init>())' in Type 'A' (A.aj:9) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
<message kind="weave" text="Join point 'initialization(void Soo.<init>())' in Type 'Soo' (A.aj:31) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
<message kind="weave" text="Join point 'initialization(void Goo.<init>())' in Type 'Goo' (A.aj:27) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
</compile>
<run class="a.b.c.AroundAdvicePassingPjpAsArgToSuper"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137235" pr="137235"
title="directory with .jar extension: source and outjar">
<compile files="directory.jar/Hello.java" outjar="directory.jar/run.custom"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr137235" pr="137235"
title="directory with .jar extension" >
<compile files="directory.jar/Before.java" outjar="directory.jar/inOne.custom" options="-1.4"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr136393" title="NPE in makePreMethod">
<compile files="World.aj" options="-1.5">
<message kind="warning" line="10" text="this affected type is not exposed to the weaver: java.lang.String [Xlint:typeNotExposedToWeaver]"/>
<message kind="error" line="16" text="Stystems cannot be resolved"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr135068" title="ltw verifyerror">
<compile files="C.java,Ajava.java" options="-1.5 -XnoInline"/>
<run class="C"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr135068" title="ltw verifyerror - 2">
<compile files="C2.java,Ajava2.java" options="-1.5 -XnoInline">
<message kind="error" line="13" text="advice can not be declared static"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr135068" title="ltw verifyerror - 3">
<compile files="t/C.java" options="-1.5"/>
<compile files="t/Ajava.java" options="-1.5">
</compile>
<run class="t.C" ltw="aop.xml"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr135068" title="ltw verifyerror - 4">
<compile files="t/C2.java" options="-1.5"/>
<compile files="t/Ajava2.java" options="-1.5">
<message kind="error" line="13" text="advice can not be declared static"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr142165" title="broken concretization">
<compile files="C.java" options="-1.5"/>
<compile files="A.java" options="-1.5"/>
<run class="C" ltw="aop.xml">
<stderr>
- <line text="warning at Type 'AA' (no debug info available)::0 no match for this type name: SomeType [Xlint:invalidAbsoluteTypeName]"/>
+ <line text="warning at Type 'AA' (no debug info available)::0 no match for this type name: SomeType [Xlint:invalidAbsoluteTypeName]"/>
<line text="foo running"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr142165" title="broken concretization - 2">
<compile files="C.java" options="-1.5"/>
<compile files="A.java" options="-1.5"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr142165" title="broken concretization - 3">
<compile files="C.java" options="-1.5"/>
<compile files="A.java" options="-1.5"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr134425" title="super ITDs">
<compile files="Derived.aj" options="-1.5"/>
<run class="Derived"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr128443" title="covariance and decp - 1">
<compile files="Covariance.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr147701" title="package for exception ignored">
<compile files="TestBean.java" options="-1.5"/>
<run class="a.b.c.TestBean"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr147701" title="package for exception ignored - 2">
<compile files="TestBean2.java" options="-1.5"/>
<run class="a.b.c.TestBean2"/>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr147701" title="package for exception ignored - 3">
<compile files="TestBean3.java" options="-1.5">
<message kind="error" text="@DeclareParents: defaultImpl="a.b.c.Impl" does not implement the interface 'a.b.c.I'"/>
<compile
files="TestMain.java, Main.java"
>
- </compile>
+ </compile>
<run class="TestMain" ltw="aop-optionsonly.xml">
<stdout>
<line text="Main.main"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="ltw" title="weaveinfo messages with include and exclude">
<compile files="EmptyTest1.java, EmptyTest2.java"/>
<compile files="EmptyAspect.aj"/>
<ajc-test dir="bugs152/pr147845" title="Generic abstract aspect hierarchy with bounds">
<compile files="GenericAspectHierarchy.aj" options="-1.5">
<message kind="warning" line="25" text="a match"/>
- <message kind="warning" line="27" text="a match"/>
+ <message kind="warning" line="27" text="a match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr147801" title="duplicate bridge methods">
<compile files="Advisor.aj" inpath="foo.jar" options="-1.5"/>
<run class="Foo">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs152/pr148007" title="jrockit boolean fun">
<compile files="test/BooleanUnitTest.java, test/LoggingAspect.aj"/>
<run class="test.BooleanUnitTest"/>
<compile files="test/BooleanUnitTest.java, test/LoggingAspect.java" options="-inlineJSR"/>
<run class="test.BooleanUnitTest"/>
</ajc-test>
-
+
<ajc-test dir="features152/synthetic" title="synthetic ajc$ members">
<compile files="TheWholeShow.aj" options="-1.5"/>
<run class="TheWholeShow"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs152/pr148786" title="freaky new array joinpoint">
<compile files="A.java" options="-Xjoinpoints:arrayconstruction"/>
<run class="A">
<line text="new array: class [[B"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs152/pr148727" pr="148727"
title="integrated compilation calling aspectOf and hasAspect" >
<compile files="Asp.aj, Client.java" options="-source 1.4"/>
<ajc-test dir="bugs152" title="new iprogramelement method getParameterSignatures with generics">
<compile files="pr141730b.java" options="-1.5 -emacssym -Xset:minimalModel=false"/>
</ajc-test>
-</suite>
\ No newline at end of file
+</suite>
</ajc-test>
<ajc-test dir="bugs153/pr149908" title="ensure no npe due to missing member">
- <compile files="A.aj,C1.java,Tracing.aj" inpath="simple.jar;stringBuilder.jar">
+ <compile files="A.aj,C1.java,Tracing.aj" inpath="simple.jar,stringBuilder.jar">
<message kind="warning" text="can not resolve this member: append [Xlint:unresolvableMember]"/>
</compile>
</ajc-test>
<ajc-test dir="bugs153/pr162657" title="complex pointcut">
<compile files="TestAspect.aj" options="-1.4"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr164633" title="incompatibleclasschange">
<compile files="Model.java"/>
<run class="test.Model"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr162135" title="bcexception in annotation style around advice - 2">
<compile files="Foo2.java" options="-1.5"/>
<run class="Foo2"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr162135" title="bcexception in annotation style around advice - 3">
<compile files="Foo3.java" options="-1.5"/>
<run class="Foo3"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr162135" title="bcexception in annotation style around advice - 4">
<compile files="Foo4.java" options="-1.5"/>
<run class="Foo4"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr162135" title="bcexception in annotation style around advice - 5">
<compile files="Foo5.java" options="-1.5"/>
<run class="Foo5"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr162135" title="bcexception in annotation style around advice - 7">
<compile files="Real.java" options="-1.5"/>
<run class="a.b.c.Real">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr159143" title="declare method annotations">
<compile files="DeclareMethodAnnotation.java" options="-1.5">
<message line="16" kind="warning" text="all"/>
<message line="41" kind="warning" text="all"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr148908" title="ensure getSourceSignature correct with static field">
<compile files="BadInterface.java" options="-1.5 -emacssym -Xset:minimalModel=false"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr161502" title="generics in pointcuts">
<compile files="Main.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(java.util.List Main.getElements())' in Type 'Main' (Main.java:31) advised by around advice from 'Main$Concrete' (Main.java:18)"/>
</compile>
<run class="Main"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr161502" title="generics in pointcuts - 2">
<compile files="Main2.java" options="-1.5 -showWeaveInfo">
<message kind="warning" text="advice defined in Main2$Base has not been applied"/>
</compile>
<run class="Main2"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr158624" title="generics and arrays">
<compile files="ValueChange.java" options="-1.5"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs153/pr153845" title="IllegalStateException at GenericSignatureParser.java">
<compile files="GenericType.java,Aspect.java,Aspect2.java,Interface.java" options="-1.5" outjar="blob.jar"/>
<ajc-test dir="bugs153/pr158412" title="annotation style pointcut npe">
<compile files="layering/Layering.aj,layering/SystemArchitektur.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr153464" title="negated annotation matching problem">
<compile files="Bug.java" options="-1.5">
<message kind="warning" line="99"/>
<message kind="warning" line="3" text="Whatever"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="features153/ptw" title="basic usage of getWithinTypeName">
<compile files="CaseOne.java"/>
<run class="CaseOne">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="features153/ptw" title="basic usage of getWithinTypeName - annotation style">
<compile files="CaseFive.java" options="-1.5"/>
<run class="CaseFive">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="features153/ptw" title="basic usage of getWithinTypeName - multiple types">
<compile files="CaseTwo.java"/>
<run class="CaseTwo">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="features153/ptw" title="basic usage of getWithinTypeName - non matching types">
<compile files="CaseThree.java"/>
<run class="CaseThree">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="features153/ptw" title="basic usage of getWithinTypeName - types in packages">
<compile files="CaseFour.java"/>
<run class="a.b.CaseFour">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr158126" title="annotations, call and constructors problem">
<compile files="A.java,B.java,MyAnnotation.java,MyAspect.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'constructor-call(void B.<init>())' in Type 'A' (A.java:5) advised by before advice from 'MyAspect' (MyAspect.java:3)"/>
<message kind="weave" text="Join point 'constructor-call(void B.<init>(int))' in Type 'A' (A.java:10) advised by before advice from 'MyAspect' (MyAspect.java:3)"/>
<message kind="weave" text="Join point 'constructor-call(void A.<init>())' in Type 'A' (A.java:14) advised by before advice from 'MyAspect' (MyAspect.java:3)"/>
- <message kind="weave" text="Join point 'constructor-call(void A.<init>(int))' in Type 'A' (A.java:15) advised by before advice from 'MyAspect' (MyAspect.java:3)"/>
+ <message kind="weave" text="Join point 'constructor-call(void A.<init>(int))' in Type 'A' (A.java:15) advised by before advice from 'MyAspect' (MyAspect.java:3)"/>
</compile>
</ajc-test>
<message kind="warning" line="2" text="advice defined in MyAspect has not been applied [Xlint:adviceDidNotMatch]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr156058" title="no IllegalStateException with generic inner aspect - 2">
<compile files="Bug2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(MyClass Bug2.callit())' in Type 'Bug2' (Bug2.java:15) advised by before advice from 'MyAspect' (Bug2.java:2)"/>
<message kind="warning" line="24" text="advice defined in MyAspect2 has not been applied [Xlint:adviceDidNotMatch]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr153490" title="no illegal state exception from AsmDelegate - 1">
<compile files="Foo.java" options="-1.5" classpath="jarForFoo.jar" />
</ajc-test>
<ajc-test dir="bugs153/pr156962" title="Test Annot Method">
<compile files="Sample.java, WarnDeprecatedMethod.aj" options="-1.5">
- <message kind="warning" line="2" text="deprecated method"/>
+ <message kind="warning" line="2" text="deprecated method"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr156962" title="Test Annot Method Has Member">
<compile files="Sample.java, LiftDeprecation.aj" options="-1.5 -XhasMember -showWeaveInfo -Xlint:ignore">
<message kind="weave" text="'Sample' (Sample.java:1) is annotated with @Deprecated type annotation from 'LiftDeprecation' (LiftDeprecation.aj:2)"/>
<compile files="PairGeneric.java" options="-1.5" outjar="pair1.jar"/>
<compile files="BaseType.java" options="-1.5" outjar="basetype.jar" classpath="pair1.jar"/>
<compile files="PairNormal.java" outjar="pair2.jar"/>
- <compile files="AnAspect.java" options="-1.5 -Xset:runMinimalMemory=true" inpath="basetype.jar;pair2.jar"/>
+ <compile files="AnAspect.java" options="-1.5 -Xset:runMinimalMemory=true" inpath="basetype.jar,pair2.jar"/>
</ajc-test>
<ajc-test dir="bugs153/pr152871" title="parsing bytecode less">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr160674" title="turning off bcel caching">
<compile files="MyClass.java" options="-1.5"/>
<compile files="MyAspect.java" options="-1.5 -Xlint:ignore"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr153380/case1" title="pipelining decps">
<compile files="Ann.java,Base.java,BaseImpl.java,I1.java,Mixin.java,Runner.java,X.aj" options="-1.5">
<message kind="error" line="1" text="The import java.lang.retention cannot be resolved"/>
-->
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr154332" title="incorrect deprecated annotation processing">
<compile files="Annot.java" options="-1.5">
<message kind="warning" line="5" text="marker"/>
<message kind="warning" line="31" text="deprecated"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr148381" title="argNames and javac">
<!--compile files="C.java" options="-1.5"/>
<compile files="A.java" options="-1.5"/-->
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/PR148219" title="unwanted warning for pointcut">
<compile files="MyMessages.java" options="-1.5 -Xlint:ignore -warn:+unusedArgument"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr148737" title="illegalstateexception for non generic type">
<compile files="A.java" options="-source 5 -target 5">
<message kind="warning" line="18" text="advice defined in TestAspect has not been applied"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr149096" title="cflow xml concrete aspect">
<compile files="SimpleTracing.aj" outjar="out.jar"/>
<compile files="TestMain.aj"/>
<run class="TestMain" ltw="aop-pr149096.xml"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr149305/case1" title="ataj inheritance - 1">
<compile files="AbstractOzonator.java,IdentityOzonator.java,User.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr149305/case2" title="ataj inheritance - 2">
<compile files="com/codesrc/ozonator/identity/IdentityOzonator.java,com/codesrc/ozonator/identity/User.java,com/codesrc/ozonator/AbstractOzonator.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr149305/case2" title="ataj inheritance - 3">
<compile files="com/codesrc/ozonator/AbstractOzonator.java,com/codesrc/ozonator/identity/IdentityOzonator.java,com/codesrc/ozonator/identity/User.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr148693" title="verification problem">
<compile files="MyAspect.java" options="-1.5 -XterminateAfterCompilation=true"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr148537" title="incorrect annotation value">
<compile files="MyClass.java" options="-1.5">
<message kind="error" line="5" text="Type mismatch: cannot convert from RetentionPolicy[] to RetentionPolicy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr145693" title="verifyErrNoTypeCflowField">
<compile files="Event.java" outjar="cpath.jar"/>
<compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar" options="-1.4"/>
<line text="method running"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs153/pr145693" title="verifyErrInpathNoTypeCflowField">
<compile files="Event.java" outjar="cpath.jar"/>
<compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar" options="-1.4"/>
<compile files="Sample.java" options="-Xlint:ignore" inpath="cpath.jar" aspectpath="apath.jar" outjar="run.jar"/>
<run class="Sample" classpath="run.jar,apath.jar"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs153/pr145693" title="cpathNoTypeCflowField">
<compile files="Event.java" outjar="cpath.jar"/>
<compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar" options="-1.4"/>
<compile files="Sample.java" options="-Xlint:ignore" classpath="cpath.jar" aspectpath="apath.jar" outjar="run.jar"/>
<run class="Sample" classpath="run.jar,apath.jar"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr148409" title="generic signature problem">
<compile files="Blurgh.java" options="-1.5"/>
<compile files="X.java" options="-1.5 -Xlint:ignore"/>
<run class="Blurgh" options="-1.5" ltw="aop.xml"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr149071" title="visibility problem">
<compile files="AspectItd.java"/>
<run class="AspectItd"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr147841" title="advice not woven on aspectpath">
<compile files="A.java" options="-Xlint:ignore" outjar="apath.jar"/>
<!--compile files="C.java" outjar="cpa.jar" classpath="cpath.jar"/-->
<line text="foo"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr150095" title="generics, inheritance and decp">
<compile files="Foo.java" options="-1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr121805" title="ambiguous binding">
<compile files="Complex.java"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr145442" title="missing line numbers in stacktrace before">
<compile files="hello/HelloWorld.java hello/ThrowExceptionBefore.aj"/>
<run class="hello.HelloWorld">
<line text="hello.HelloWorld.main(HelloWorld.java:41)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr145442" title="missing line numbers in stacktrace before - binary">
<compile inpath="helloworld.jar" files="hello/ThrowExceptionBefore.aj"/>
<run class="hello.HelloWorld">
<line text="hello.HelloWorld.main(HelloWorld.java:41)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr145442" title="missing line numbers in stacktrace after">
<compile files="hello/HelloWorld.java hello/ThrowExceptionAfter.aj"/>
<run class="hello.HelloWorld">
<line text="hello.HelloWorld.main(HelloWorld.java:41)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr145442" title="missing line numbers in stacktrace around">
<compile files="hello/HelloWorld.java hello/ThrowExceptionAround.aj" options="-XnoInline"/>
<run class="hello.HelloWorld">
<line text="hello.HelloWorld.main(HelloWorld.java:41)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/pr149322" title="can't find type on interface call 1">
<compile files="Interface.java"/>
<compile
<compile files="Aspect1.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
<message kind="weave" text="void Interface.interfaceMethod()"/>
<message kind="weave" text="void Missing.interfaceMethod()"/>
- </compile>
+ </compile>
<compile files="Aspect1.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
<message kind="weave" text="void Interface.interfaceMethod()"/>
<!--
<message kind="warning" text="can't determine superclass of missing type Missing"/>
-->
- </compile>
+ </compile>
<run class="TestWithMissing">
<stdout>
<line text="Aspect1.before() interfaceMethod"/>
<line text="Missing.interfaceMethod()"/>
-<!--
+<!--
<line text="Aspect1.before() interfaceMethod"/>
-->
<line text="Missing.interfaceMethod()"/>
<line text="Missing.missingMethod()"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs153/pr149322" title="can't find type on interface call 2">
<compile files="Interface.java"/>
<compile
<compile files="Aspect2.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
<message kind="weave" text="void Interface.interfaceMethod()"/>
<message kind="weave" text="void Missing.interfaceMethod()"/>
- </compile>
+ </compile>
<compile files="Aspect2.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
<message kind="weave" text="void Interface.interfaceMethod()"/>
<message kind="warning" text="can't determine whether missing type Missing is an instance of Interface"/>
<message kind="warning" text="can't determine superclass of missing type Missing"/>
- </compile>
+ </compile>
<run class="TestWithMissing">
<stdout>
<line text="Aspect2.before() interfaceMethod"/>
<line text="Missing.interfaceMethod()"/>
-<!--
+<!--
<line text="Aspect2.before() interfaceMethod"/>
-->
<line text="Missing.interfaceMethod()"/>
<line text="Missing.missingMethod()"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs153/pr149322" title="can't find type on interface call 3">
<compile files="Interface.java"/>
<compile
<compile files="Aspect3.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
<message kind="weave" text="void Interface.interfaceMethod()"/>
<message kind="weave" text="void Missing.interfaceMethod()"/>
- </compile>
+ </compile>
<compile files="Aspect3.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
<message kind="weave" text="void Interface.interfaceMethod()"/>
<message kind="warning" text="can't determine whether missing type Missing is an instance of Interface"/>
<message kind="warning" text="can't determine superclass of missing type Missing"/>
- </compile>
+ </compile>
<run class="TestWithMissing">
<stdout>
<line text="Aspect3.before() interfaceMethod"/>
<line text="Missing.interfaceMethod()"/>
-<!--
+<!--
<line text="Aspect3.before() interfaceMethod"/>
-->
<line text="Missing.interfaceMethod()"/>
<line text="Missing.missingMethod()"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153" title="match volatile field">
<compile files="pr150671.aj" options="-Xset:activateLightweightDelegates=false">
<message kind="error" line="7" text="Changing state"/>
<compile files="Aspect.aj" options="-outxml -outjar aspects.jar -1.4"/>
<ant file="ajc-ant.xml" target="Duplicate JVMTI agents" verbose="true"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr151978" title="generics problem">
<compile files="IMessage.java" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr152631" title="decp and cflowadder munger clash">
<compile files="EMA.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr153572" title="LTWWorld with annotation matching">
- <compile
- files="Configurable.java, AnnotationMatcher.aj"
+ <compile
+ files="Configurable.java, AnnotationMatcher.aj"
options="-1.5"
outjar="aspectlib.jar"
outxmlfile="META-INF/aop.xml"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr149560" title="incorrect staticinitialization weaving - codestyle">
<compile files="CodeStyle.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void MyAspect.<clinit>())' in Type 'MyAspect' (CodeStyle.java:3) advised by after advice from 'MyAspect' (CodeStyle.java:4)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr149560" title="incorrect staticinitialization weaving - annstyle">
<compile files="AnnStyle.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void MyAspect.<clinit>())' in Type 'MyAspect' (AnnStyle.java:5) advised by after advice from 'MyAspect' (AnnStyle.java:7)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="ltw" title="reweavableAspectNotRegistered error">
<compile files="HelloWorldWithException.java, ExceptionHandler.aj" options="-showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void HelloWorldWithException.main(java.lang.String[]))' in Type 'HelloWorldWithException' (HelloWorldWithException.java:3) advised by around advice from 'ExceptionHandler' (ExceptionHandler.aj:2)"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr155972" title="NPE in ConstructorSignatureImpl">
<compile files="ConstructorTest.java, SignatureImplAspect.aj" options="-Xlint:ignore"/>
<run class="ConstructorTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr155972" title="NPE in FieldSignatureImpl">
<compile files="FieldTest.java, SignatureImplAspect.aj" options="-Xlint:ignore"/>
<run class="FieldTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr155972" title="NPE in InitializerSignatureImpl">
<compile files="InitializerTest.java, SignatureImplAspect.aj" options="-Xlint:ignore"/>
<run class="InitializerTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr155763" title="ensure LineNumberTable correct with generics, for each and continue">
<compile files="Test.java" options="-1.5">
<message kind="warning" line="27" text="adviceDidNotMatch"/>
- </compile>
+ </compile>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr157474" title="TestServer with duplicate configuration" keywords="ltw,server">
<compile files="AbstractTracing.aj" options="-outjar library.jar -outxml"/>
<compile files="HelloWorld.java" options="-outjar application.jar"/>
<ajc-test dir="bugs153/pr151772" title="ensure declare soft doesn't allow undeclared exception in anonymous inner class - 2">
<compile files="Softener2.aj">
<message kind="error" line="18" text="Unhandled exception type SQLException"/>
- </compile>
+ </compile>
</ajc-test>
<ajc-test dir="bugs153/pr125981" title="declare soft and inner classes">
<compile files="HelloWorld.java" options="-outjar hello.jar"/>
<compile files="Missing.java" options="-outjar missing.jar"/>
<compile files="Tracing.aj, PointcutLibrary.aj" options="-Xlint:ignore -1.5 -outxml -outjar tracing.jar" classpath="hello.jar,missing.jar"/>
-<!--
+<!--
<run class="HelloWorld" ltw="aop.xml">
<stdout>
<line text="? main"/>
<line text="Hello World!"/>
</stdout>
</run>
--->
+-->
<ant file="ant.xml" target="NPE with LTW, pointcut library and missing aspect dependency" verbose="true">
<stdout>
<line text="? main"/>
<compile
files="HelloWorld.java"
>
- </compile>
+ </compile>
<compile files="AbstractSuperAspect.aj" options="-1.4"/>
<compile files="TestAdvice.aj" options="-1.4"/>
<run class="HelloWorld" ltw="aop-advice.xml">
<ajc-test dir="bugs153/pr132080"
title="Weave concrete sub-aspect with ITD"
keywords="aop.xml">
-<!--
+<!--
<compile files="AbstractSuperAspectWithInterface.aj, TestInterface.java" options="-verbose"/>
<compile files="HelloWorld.java, TestITD.aj, ConcreteAspectWithITD.aj" options="-verbose">
<message line="3" kind="warning" text="this affected type is not exposed to the weaver: AbstractSuperAspectWithInterface"/>
<line text="Hello World!"/>
</stdout>
</run>
--->
+-->
<compile files="HelloWorld.java"/>
<compile files="AbstractSuperAspectWithInterface.aj, TestInterface.java"/>
<compile files="TestITD.aj">
</ajc-test>
- <ajc-test dir="bugs153/pr132080" title="Weave concrete sub-aspect with around closure"
+ <ajc-test dir="bugs153/pr132080" title="Weave concrete sub-aspect with around closure"
keywords="aop.xml">
<compile files="HelloWorld.java"/>
<compile files="TestMain.aj"/>
<run class="TestMain" ltw="aop-pr149096.xml"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr158957" title="NPE with LTW, pointcut library and missing aspect dependency" keywords="ltw">
<compile files="HelloWorld.java" options="-outjar hello.jar"/>
<compile files="Missing.java" options="-outjar missing.jar"/>
<compile files="Tracing.aj, PointcutLibrary.aj" options="-Xlint:ignore -1.5 -outxml -outjar tracing.jar" classpath="hello.jar,missing.jar"/>
-<!--
+<!--
<run class="HelloWorld" ltw="aop.xml">
<stdout>
<line text="? main"/>
<line text="Hello World!"/>
</stdout>
</run>
--->
+-->
<ant file="ant.xml" target="NPE with LTW, pointcut library and missing aspect dependency" verbose="true">
<stdout>
<line text="? println"/>
<compile files="MainClass.java, WorldAspect.aj" inpath="library.jar" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void pkg.Hello.sayHello())' in Type 'pkg.Hello' (Hello.java:7) advised by afterReturning advice from 'pack.WorldAspect' (WorldAspect.aj:9)"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs153/pr164356" title="javadoc comments are set if have normal comments">
<compile files="C.java" options="-emacssym -XjavadocsInModel -Xset:minimalModel=false"/>
</ajc-test>
-
+
<ajc-test dir="bugs153/pr164384" title="compliance java 6 throws usage error">
<compile files="MainClass.java,Hello.java,MyAnnotation.java" options="-1.6">
- <!--
+ <!--
<message kind="error" text="-1.6"/>
<message kind="error" text="no sources specified"/>
<message kind="abort" text="AspectJ Compiler"/>
<ajc-test dir="bugs153/pr164384" title="source level java 6 throws usage error">
<compile files="MainClass.java,Hello.java,MyAnnotation.java" options="-1.6">
- <!--
+ <!--
<message kind="error" text="-1.6"/>
<message kind="error" text="no sources specified"/>
<message kind="abort" text="AspectJ Compiler"/>
-->
- </compile>
+ </compile>
</ajc-test>
<ajc-test dir="bugs153/pr164384" title="target level java 6 throws usage error">
<compile files="MainClass.java,Hello.java,MyAnnotation.java" options="-1.6">
- <!--
+ <!--
<message kind="error" text="-1.6"/>
<message kind="error" text="no sources specified"/>
<message kind="abort" text="AspectJ Compiler"/>
<ajc-test dir="bugs153/StaticImport" title="ensure static import reference have static modifier set">
<compile files="StaticImport.java,C.java" options="-1.5 -emacssym -Xset:minimalModel=false"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/GenericMethod" title="ensure getSourceSignature correct with generic method">
<compile files="C.java" options="-1.5 -emacssym -Xset:minimalModel=false"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs153/Annotation" title="ensure Annotations are added to import list">
<compile files="C.java, Anno.aj, A.java" options="-1.5 -emacssym"/>
- </ajc-test>
-</suite>
\ No newline at end of file
+ </ajc-test>
+</suite>
<ajc-test dir="bugs154/pr166647" title="ltw and cflow problem">
<compile options="-1.5" files="ClassToAdvise.java,ClassWithMain.java" outjar="code.jar"/>
<compile options="-1.5 -Xlint:ignore" files="Aspect.java" outjar="aspects.jar"/>
- <run class="a.ClassWithMain" classpath="aspects.jar;code.jar" ltw="aop1.xml">
+ <run class="a.ClassWithMain" classpath="aspects.jar,code.jar" ltw="aop1.xml">
<stdout>
<line text="advice fired"/>
</stdout>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr211052" title="declare atType problems - 1">
<compile options="-1.5" files="MyPojo.java"/>
<run class="MyPojo"/>
</ajc-test>
-
+
<!-- DistantResource is explicitly mentioned as c.d.DistantResource -->
<ajc-test dir="bugs154/pr211052" title="declare atType problems - 2">
<compile options="-1.5 -showWeaveInfo" files="SimpleAnnotation.java,SimpleAspect1.java,DistantResource.java">
<message kind="weave" text="'c.d.DistantResource' (DistantResource.java:5) is annotated with @SimpleAnnotation(classname = "oranges")"/>
</compile>
<run class="c.d.DistantResource">
- <stdout>
+ <stdout>
<line text="Annotation is @a.b.SimpleAnnotation(classname=oranges)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
<line text="Annotation is @a.b.SimpleAnnotation(classname="oranges")" vm="9+"/>
</stdout>
</run>
</ajc-test>
-
+
<!-- Annotation is in a different package to the aspect and explicitly referenced with a fully qualified name -->
<ajc-test dir="bugs154/pr211052" title="declare atType problems - 4">
<compile options="-1.5 -showWeaveInfo" files="SimpleAnnotation2.java,SimpleAspect3.java,DistantResource.java">
<message kind="weave" text="'c.d.DistantResource' (DistantResource.java:5) is annotated with @e.f.SimpleAnnotation2(classname = "oranges")"/>
- </compile>
+ </compile>
<run class="c.d.DistantResource">
<stdout>
<line text="Annotation is @e.f.SimpleAnnotation2(classname=oranges)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
- <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
+ <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
</stdout>
</run>
</ajc-test>
<run class="c.d.DistantResource">
<stdout>
<line text="Annotation is @e.f.SimpleAnnotation2(classname=oranges)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
- <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
+ <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
</stdout>
</run>
</ajc-test>
-
+
<!-- target for annotation is from a jar -->
<ajc-test dir="bugs154/pr211052" title="declare atType problems - 6">
<compile options="-1.5" files="DistantResource.java" outjar="target.jar"/>
<run class="c.d.DistantResource">
<stdout>
<line text="Annotation is @e.f.SimpleAnnotation2(classname=oranges)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
- <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
+ <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
</stdout>
</run>
</ajc-test>
<run class="c.d.DistantResource">
<stdout>
<line text="Annotation is @e.f.SimpleAnnotation2(classname=oranges)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
- <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
+ <line text="Annotation is @e.f.SimpleAnnotation2(classname="oranges")" vm="9+"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr211674" title="after throwing annotation style problem - 1">
<compile options="-1.5" files="Test.java"/>
<run class="Test"/>
<stdout/>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr148381/error3" title="argNames does not work - error3">
<!-- this compile is just to get code.jar into the sandbox, all the code is already precompiled in code.jar -->
<compile options="-1.5" files="PerformanceMonitor.java" classpath="code.jar"/>
</stdout>
</run>
</ajc-test>
-
+
<!-- switch from code style sub-aspect to annotation style sub aspect -->
<ajc-test dir="bugs154/pr209019/case2" title="various issues with ltw and around advice - 2">
<compile options="-1.5 -XnoInline" files="A.java,AtDurationMethod.java,AbstractDurationMethod.java,Runner.java"/>
</stderr>
</run>
</ajc-test>
-
+
<!-- same as case2 but without -XnoInline -->
<ajc-test dir="bugs154/pr209019/case2" title="various issues with ltw and around advice - 3">
<compile options="-1.5" files="A.java,AtDurationMethod.java,AbstractDurationMethod.java,Runner.java"/>
</stderr>
</run>
</ajc-test>
-
+
<!-- now loadtime weaving -->
<ajc-test dir="bugs154/pr209019/case3" title="various issues with ltw and around advice - 4">
<compile options="-1.5" files="A.java,AbstractDurationMethod.java,Runner.java"/>
</stderr>
</run>
</ajc-test>
-
+
<!-- just checking the new syntax compiles OK -->
<ajc-test dir="bugs154/pr169432/case1" title="declare parents problem when target already implements interface - 1">
<compile options="-1.5" files="NonMarkerInterface.java,ClassThatAlreadyIncludesRequiredMethods.java,DeclareParentsForNonMarkerInterfaceToAClassThatAlreadyIncludeRequiredMethods.java"/>
</ajc-test>
-
+
<!-- now violate the rules, the types matching the pattern do not implement the interface -->
<ajc-test dir="bugs154/pr169432/case2" title="declare parents problem when target already implements interface - 2">
<compile options="-1.5" files="A.java">
</compile>
</ajc-test>
- <!-- now they do, lets check they behave as expected -->
+ <!-- now they do, lets check they behave as expected -->
<ajc-test dir="bugs154/pr169432/case3" title="declare parents problem when target already implements interface - 3">
<compile options="-1.5" files="A.java"/>
<run class="A">
<ajc-test dir="bugs154/pr162539" title="NPE with missing @aspect annotation in pointcut library - 1">
<compile files="test/ataspectj/pointcutlibrary/HelloWorld.java, test/ataspectj/pointcutlibrary/AtAspect.java" classpath="lib.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr162539" title="NPE with missing @aspect annotation in pointcut library - 2">
<compile files="test/ataspectj/pointcutlibrary/PointcutLibrary.java, test/ataspectj/pointcutlibrary/HelloWorld.java, test/ataspectj/pointcutlibrary/AtAspect.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr176991" title="wrong number of type parameters">
<compile options="-1.5" files="AspectJBugTestCase.java"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr186673" title="jars and zips with non-standard suffix">
<compile options="-1.5" files="Apple.java" outjar="apple.jar.0"/>
<compile options="-1.5" files="Orange.java" outjar="orange.zipfoo"/>
</ant-->
<compile options="-1.5" files="Main.java" classpath="orange.zipfoo,apple.jar.0"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface">
<compile options="-1.5" files="Bang.java"/>
<!--compile options="-1.5 -emacssym" files="Bang.java"/-->
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - emacssym">
<compile options="-1.5 -emacssym" files="Bang.java"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleA">
<compile options="-1.5" files="ExampleA.java"/>
<run class="ExampleA"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleB">
<compile options="-1.5" files="ExampleB.java">
<message kind="error" line="20" text="The method intro(String) in the type I.J<String> is not applicable for the arguments (int)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleC">
<compile options="-1.5" files="ExampleC.java"/>
<run class="ExampleC"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleD">
<compile options="-1.5" files="ExampleD.java"/>
<run class="ExampleD"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleE">
<compile options="-1.5" files="ExampleE.java"/>
<run class="ExampleE"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleF">
<compile options="-1.5" files="ExampleF.java"/>
<run class="ExampleF"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface - exampleG">
<compile options="-1.5" files="ExampleG.java"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr206732" title="itd clash for types from aspectpath">
<compile outjar="foo.jar" files="Advised.aj"/>
<compile files="Ref.aj" aspectpath="foo.jar"/>
<ajc-test dir="bugs154/pr175806" title="coping with bad tables">
<compile options="-1.5" files="A.java"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr174449" title="problem with generic aspect and generic pointcut">
<compile options="-1.5" files="Foo.java"/>
<run class="Foo">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr174449" title="problem with generic aspect and generic pointcut - noinline">
<compile options="-1.5 -XnoInline" files="Foo.java"/>
<run class="Foo">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr171953_2" title="problem with generic methods and ordering - ok">
<compile options="-1.5" files="test/ListFactoryAspect.aj, test/AbstractProcessor.java,test/ListFactory.java,test/ListFactoryConsumer.java,test/Processor.java,test/SimpleListFactoryConsumer.java">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr171953_2" title="problem with generic methods and ordering - bad">
<compile options="-1.5" files="test/ListFactory.java,test/ListFactoryConsumer.java,test/SimpleListFactoryConsumer.java,test/Processor.java,test/ListFactoryAspect.aj,test/AbstractProcessor.java">
</compile>
<message kind="weave" text="Extending interface set for type 'test.AbstractExecutable' (AbstractExecutable.java) to include 'java.io.Serializable' (ExecutionAspect.aj)"/>
<message kind="weave" text="Join point 'method-execution(void test.SubTestExecutable.execute())' in Type 'test.SubTestExecutable' (SubTestExecutable.java:6) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
<message kind="weave" text="Join point 'method-execution(void test.TestExecutable.execute())' in Type 'test.TestExecutable' (TestExecutable.java:5) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
- </compile>
+ </compile>
<run class="test.SecondTestExecutable"/>
</ajc-test>
<message kind="weave" text="Extending interface set for type 'test.AbstractExecutable' (AbstractExecutable.java) to include 'java.io.Serializable' (ExecutionAspect.aj)"/>
<message kind="weave" text="Join point 'method-execution(void test.SubTestExecutable.execute())' in Type 'test.SubTestExecutable' (SubTestExecutable.java:6) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
<message kind="weave" text="Join point 'method-execution(void test.TestExecutable.execute())' in Type 'test.TestExecutable' (TestExecutable.java:5) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
- </compile>
+ </compile>
<run class="test.SecondTestExecutable"/>
</ajc-test>
<ajc-test dir="bugs154/pr171952" title="generic methods and ITDs">
<compile files="Foo.java,FooAspect.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr169428" title="using decp annotation without aspect annotation">
<compile files="AnAspect.java" options="-1.5">
<message kind="error" text="Found @AspectJ annotations in a non @Aspect type 'AnAspect'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr170467" title="itds and parameterized parameters">
<compile files="Bug.aj" options="-1.5"/>
<compile files="Bug2.aj" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr169706" title="inherited annotations">
<compile files="A.java,B.java,C.java,MyAspect.java,MyAnnotation.java,Test.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(void C.foo())' in Type 'Test' (Test.java:5) advised by before advice from 'MyAspect' (MyAspect.java:4)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr165885" title="generic field npe">
<compile files="Concrete.java,Abstract.java,Aspect.java" options="-1.5">
<message kind="warning" line="8" text="foo"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr168044" title="complex generics - 1">
<compile files="AbstractNode.java" options="-1.5">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr168063" title="incorrectly marking field transient">
<compile files="A.java"/>
<run class="A">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr166084" title="incorrect optimization of istore">
<compile files="X.java" inpath="simple.jar"/>
<run class="Simple"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr165631" title="dual parameterizations not allowed">
<!-- two variations of the same situation, should fail in the same way -->
<compile files="Bug.java" options="-1.5">
<compile
files="Main.java"
>
- </compile>
+ </compile>
<run class="Main" ltw="aop-noxlintfile-nowarn.xml">
<stderr/> <!-- no warnings from missing xlint file: they are suppressed -->
- </run>
+ </run>
</ajc-test>
<ajc-test dir="ltw"
<compile
files="Main.java"
>
- </compile>
+ </compile>
<run class="Main" ltw="aop-noxlintfile-warnnone.xml">
<stderr/> <!-- no warnings from missing xlint file: they are suppressed -->
</run>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr172107" title="null returned from getField()"
keywords="pr172107">
<compile files="ReadWriteAJBug172107.java,Instrumentation.aj"/>
<run class="ReadWriteAJBug172107"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr197719" title="annotation style syntax and cross package extension">
<compile files="test/aspects/C1.java,test/aspects/C3.java,test/aspects/MyAnn.java,test/aspects/MyAnnAspect.java,test/aspects2/C2.java" options="-1.5"/>
<run class="test.aspects2.C2"/>
</ajc-test>
-
+
<ajc-test dir="bugs154/pr205907" title="new pointcut designators in a reference pointcut">
<compile files="Test.aj"/>
</ajc-test>
-</suite>
\ No newline at end of file
+</suite>
<line text="@AspectWithConstant$Loggable()"/>
</stdout></run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice">
<compile files="Hello.java JavaHelper.java"/>
<run class="Hello" ltw="aop.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 2">
<compile files="Hello.java JavaHelper.java"/>
<run class="Hello" ltw="aop2.xml">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 3">
<compile files="Hello.java JavaHelper.java"/>
<run class="Hello" ltw="aop3.xml">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 4">
<compile files="Hello.java JavaHelper.java"/>
<run class="Hello" ltw="aop4.xml">
</stderr>
</run>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 5">
<compile files="Hello2.java JavaHelper.java"/>
<run class="Hello2" ltw="aop5.xml">
</stdout>
</run>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 6">
<compile files="Hello2.java JavaHelper.java"/>
<run class="Hello2" ltw="aop6.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 7">
<compile files="Hello2.java JavaHelper.java"/>
<run class="Hello2" ltw="aop7.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 9">
<compile files="Hello2.java JavaHelper.java"/>
<run class="Hello2" ltw="aop9.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 10">
<compile files="Hello2.java JavaHelper.java"/>
<run class="Hello2" ltw="aop10.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 11">
<compile files="Hello2.java JavaHelper.java"/>
<run class="Hello2" ltw="aop11.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 12">
<compile files="Hello3.java JavaHelper.java"/>
<run class="Hello3" ltw="aop12.xml">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/xmldefs" title="xml defined advice 13">
<compile files="Hello2.java JavaHelper2.java"/>
<run class="Hello2" ltw="aop13.xml">
</ajc-test>
<ajc-test dir="bugs1612/verify" title="verify perthis">
-<compile files="Runner.aj" inpath="code.jar" classpath="groovy-1.8.0.jar;asm-3.2.jar" options="-1.6 -Xset:generateStackMaps=true"/>
+<compile files="Runner.aj" inpath="code.jar" classpath="groovy-1.8.0.jar,asm-3.2.jar" options="-1.6 -Xset:generateStackMaps=true"/>
<run class="Runner">
<stdout>
<line text="AA"/>
<ajc-test dir="bugs1612/pr345172" title="incorrect annos">
<compile files="InterType.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int))' in Type 'InterType' (InterType.java:21) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
-<!--
+<!--
<message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int, int))' in Type 'InterType' (InterType.java:24) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
<message kind="weave" text="Join point 'method-execution(void InterType.m1(int))' in Type 'InterType' (InterType.java:28) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
-->
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs1612/pr292239" title="throws clause - 2">
<compile files="Code2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void mypackage.Code2.n2())' in Type 'mypackage.Code2' (Code2.java:17) advised by afterThrowing advice from 'mypackage.Azpect' (Code2.java:7)"/>
</stdout>
</run>
</ajc-test>
-<!--
+<!--
+
-
<ajc-test dir="bugs1611/pr336136" title="itit">
<compile files="Country_Roo_Op4j.java">
<message kind="error" text="The import com.foo cannot be resolved" line="1"/>
<message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
</compile>"
</ajc-test>
-
+
-->
-
-
-</suite>
\ No newline at end of file
+
+
+</suite>
<!-- 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">
+ <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">
+ <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">
+ <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">
+ <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"/>
</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)"/>
<ajc-test dir="bugs162/pr176905" title="chained itds">
<compile options="-1.5" files="ChainedItd.aj">
- </compile>
+ </compile>
<run class="ChainedItd">
<stderr/> <!-- no errors-->
</run>
<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)"/>
+ <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 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"/>
<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>
<line text="some sub method3"/>
</stdout>
</run>
- </ajc-test>
-
+ </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>
<line text="some sub method"/>
</stdout>
</run>
- </ajc-test>
+ </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>
<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>
+
<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>
<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>
+
<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>
+
<ajc-test dir="bugs162/pr239441" title="annotation decp">
<compile files="Test3.java SampleAspect.java" options="-1.5 -showWeaveInfo -XhasMember">
</compile>
- </ajc-test>
+ </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>
+
<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>
+
<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>
+
<ajc-test dir="bugs162/pr240693" title="privileged generics">
<compile files="PayloadClass.java SomeInterface.java GenericClassInAdvice.java" options="-1.5">
</compile>
- </ajc-test>
-
+ </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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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)"/>
+ <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>
<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)"/>
+ <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>
+
<ajc-test dir="bugs162/pr233718" title="parameter subsetting - args binding">
<compile files="ArgsBinding.java" options="-1.5"/>
<run class="ArgsBinding">
<line text="0) b"/>
</stdout>
</run>
- </ajc-test>
-
+ </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>
</ajc-test>
-</suite>
\ No newline at end of file
+</suite>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr296484" title="optimizing annotation binding">
<compile files="AnnoBinding.java" options="-1.5"/>
<run class="AnnoBinding"/>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr296484" title="optimizing annotation binding - 2">
<compile files="Perf.java" options="-1.5"/>
<run class="Perf"/>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr295092" title="perthis ltw">
<compile files="AbstractAspect.aj" options="-1.5" outjar="aspects.jar"/>
<compile files="Wibble.java"/>
<message kind="error" text="cannot convert"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr296040" title="broken generated code">
<compile files="ErrorClass.java" options="-1.5" classpath="gc10rc4.jar"/>
<run class="ErrorClass"/>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr293457" title="hierarchy builder npe">
<compile files="com/citi/gdos/smart/applib/service/cache/CachingIntroduction.aj org/springmodules/cache/annotations/Cacheable.java" options="-1.5 -emacssym">
<message kind="warning" text="no match for this type name: Setter"/>
<message kind="error" text="The attribute modelId is undefined for the"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="features167/timers/one" title="timers - 1">
<compile files="Code.java Code2.java" outjar="code.jar" options="-1.5 -Xlint:ignore"/>
<compile files="Asp.java" options="-1.5 -Xlint:ignore" outjar="asp.jar"/>
- <run class="Code2" ltw="aop.xml" classpath="code.jar;asp.jar">
+ <run class="Code2" ltw="aop.xml" classpath="code.jar,asp.jar">
<stderr>
<line text="info AspectJ"/>
<line text="info register"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="features167/timers/one" title="timers - 2">
<compile files="Code.java Code2.java Asp.java" options="-1.5 -timers -Xset:timersPerJoinpoint=8,timersPerFastMatchCall=3">
<!-- <line text="info AspectJ"/>
<message kind="weave" text="Join point 'method-execution(void pkg.C.m())' in Type 'pkg.C' (CaseOne.java:10) advised by before advice from 'pkg.X' (CaseOne.java:14)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr293510" title="execution fastmatch - 2">
<compile files="CaseTwo.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void pkg.C.m())' in Type 'pkg.C' (CaseTwo.java:9) advised by before advice from 'pkg.X' (CaseTwo.java:13)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr293203" title="anno matching">
<compile files="Foo.java" options="-1.5"/>
<run class="Foo">
</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">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs167/pr288064" title="outer class names - scala - ltw">
<compile files="Main.java Outer.java" outjar="app.jar" options="-1.5"/>
<compile files="Aspect.java" outjar="asp.jar" options="-Xlint:ignore -1.5"/>
- <run class="test.Main" classpath="app.jar;asp.jar" ltw="aop.xml">
+ <run class="test.Main" classpath="app.jar,asp.jar" ltw="aop.xml">
<stdout>
<line text="advice"/>
<line text="method"/>
</stdout>
</run>
</ajc-test>
-
-</suite>
\ No newline at end of file
+
+</suite>
<message kind="weave" text="'public void Person.getin()' (DAMethod2.java:21) is annotated with @Annot method annotation from 'DAMethod2' (DAMethod2.java:28)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr287613" title="compound declare patterns - method - 1">
<compile files="DAMethod1.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="'public java.lang.String Person.getString()' (DAMethod1.java:9) is annotated with @Annot method annotation from 'DAMethod1' (DAMethod1.java:15)"/>
<message kind="weave" text="'public boolean Person.isSet()' (DAMethod1.java:10) is annotated with @Annot method annotation from 'DAMethod1' (DAMethod1.java:15)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr315820" title="multiple annos running - 1">
<compile files="MultiAnno2.java" options="-1.5"/>
<run class="MultiAnno2">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr315820" title="multiple annos parsing">
<compile files="MultiAnno.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr287613" title="compound declare patterns - fields - 2">
<compile files="Target.java" options="-1.5"/>
<run class="Target">
<line text="@Annot3()"/>
</stdout></run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr287613" title="compound declare patterns - fields - 1">
<compile files="DeclareAnnot.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr287613" title="compound declare patterns - methodctor - 1">
<compile files="DeclareAnnotMethodCtor.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr310506" title="optional aspects">
<compile files="Anno.java" outjar="anno.jar" options="-1.5"/>
<compile files="AspectA.java" classpath="anno.jar" outjar="aspect.jar" options="-Xlint:ignore -1.5"/>
<compile files="AspectB.java" outjar="aspect2.jar" options="-Xlint:ignore -1.5"/>
- <compile files="Code.java" classpath="aspect.jar;aspect2.jar" options="-1.5"/>
+ <compile files="Code.java" classpath="aspect.jar,aspect2.jar" options="-1.5"/>
<file deletefile="anno.jar"/>
- <run class="Code" ltw="META-INF/aop.xml" classpath=".;aspect.jar;aspect2.jar">
+ <run class="Code" ltw="META-INF/aop.xml" classpath=".,aspect.jar,aspect2.jar">
<stderr>
<line text="AspectJ Weaver Version"/>
<line text="register classloader"/>
<line text="using configuration"/>
<line text="register aspect"/>
<line text="deactivating aspect"/>
- <line text="register aspect"/>
+ <line text="register aspect"/>
<line text="processing reweavable"/>
</stderr>
<stdout>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr310506" title="optional aspects 2">
<compile files="Anno.java" outjar="anno.jar" options="-1.5"/>
<compile files="AspectA.java" classpath="anno.jar" outjar="aspect.jar" options="-Xlint:ignore -1.5"/>
<compile files="AspectB.java" outjar="aspect2.jar" options="-Xlint:ignore -1.5"/>
- <compile files="Code.java Code2.java" classpath="anno.jar;aspect.jar;aspect2.jar" options="-1.5"/>
- <run class="Code2" ltw="META-INF/aop.xml" classpath=".;aspect.jar;aspect2.jar">
+ <compile files="Code.java Code2.java" classpath="anno.jar,aspect.jar,aspect2.jar" options="-1.5"/>
+ <run class="Code2" ltw="META-INF/aop.xml" classpath=".,aspect.jar,aspect2.jar">
<stderr>
<line text="AspectJ Weaver Version"/>
<line text="register classloader"/>
<line text="using configuration"/>
<line text="register aspect"/>
- <line text="register aspect"/>
+ <line text="register aspect"/>
<line text="processing reweavable"/>
<line text="processing reweavable"/>
</stderr>
<message kind="warning" text="no match for this type name: AnnotationWithParamAndTypo [Xlint:invalidAbsoluteTypeName]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr314840" title="validate branch recursion">
<compile files="Arguments.aj Test1.java Test2.java Test.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr313026/one" title="clashing declare annos">
<compile files="Target.java Asp.java Bsp.java Wibble.java Precedence1.java" options="-1.5 -Xlint:ignore"/>
<run class="Target">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr312839/one" title="class file size - 1">
<compile files="Class.java X.aj" options="-1.5"/>
<run class="com.wibble.foo.Class">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr122460/one" title="scoping ltw - 3">
<compile files="A.java" options="-1.5 -Xlint:ignore" outjar="aspects.jar"/>
<compile files="Code.java Runner.java"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr122460/one" title="scoping ltw - 1">
<compile files="A.java" options="-1.5 -Xlint:ignore" outjar="aspects.jar"/>
<compile files="Code.java Runner.java"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr122460/one" title="scoping ltw - 2">
<compile files="A.java" options="-1.5 -Xlint:ignore" outjar="aspects.jar"/>
<compile files="Code.java Runner.java"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr307009" title="declare soft and call - 1">
<compile files="Test.java Test2.java Ann.java Bug.aj" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Softening exceptions in type 'Test' (Test.java:4) as defined by aspect 'Bug' (Bug.aj:3)"/>
<message kind="weave" text="Softening exceptions in type 'Test' (Test.java:4) as defined by aspect 'Bug' (Bug.aj:3)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr310043" title="rogue error">
<compile files="B.java" classpath="code.jar" aspectpath="code.jar"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr309743" title="itd marker annotations - 1">
<compile files="A.java" options="-1.5"/>
<run class="A">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr309743" title="itd marker annotations - 2">
<compile files="B.java" options="-1.5"/>
<run class="B">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr309336" title="pipelining and generics">
<compile files="NoSystemStreams.aj UseOperators.java Operators.java" options="-1.5">
<message kind="warning" text="No system.out"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr308773" title="subtle generics problem">
<compile files="Aspy.aj Zzz.java Top.java Middle.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr307147" title="advising privileged access method">
<compile files="B.java Test2.java" options="-showWeaveInfo">
<message kind="weave" text="Type 'B' (B.java) has intertyped method from 'Test'"/>
<message kind="weave" text="Join point 'field-get(int A.goo)' in Type 'Test'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr307120" title="advising privileged access member">
<compile files="A.java Test.java" options="-showWeaveInfo">
<message kind="weave" text="Type 'A' (A.java) has intertyped method from 'Test'"/> <!-- getFoo and getGoo -->
<message kind="weave" text="Join point 'field-get(int A.foo)' in Type 'Test'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr309440" title="crash param annos">
<compile files="foobar/ExportMode.java" classpath="jsr305.jar" options="-1.6"/>
<compile files="foobar/CrashAspectJCompiler.java" classpath="jsr305.jar" options="-1.6"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr307120" title="advising privileged access member - 2">
<compile files="Test.java A.java" options="-showWeaveInfo">
<message kind="weave" text="Type 'A' (A.java) has intertyped method from 'Test'"/> <!-- getFoo and getGoo -->
<message kind="weave" text="Join point 'field-get(int A.foo)' in Type 'Test'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr292262" title="if with statically recognizable code">
<compile files="A.java">
<message kind="weave" text="Join point 'staticinitialization(void SimpleClass.<clinit>())' in Type 'SimpleClass'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - class">
<compile files="SimpleClass.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void SimpleClass.<clinit>())' in Type 'SimpleClass'"/>
<message kind="weave" text="Join point 'staticinitialization(void Bar.<clinit>())' in Type 'Bar'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - interface">
<compile files="SimpleInterface.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void Foo.<clinit>())' in Type 'Foo'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - enum">
<compile files="SimpleEnum.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void Foo.<clinit>())' in Type 'Foo'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - annotation">
<compile files="SimpleAnnotation.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void WibbleAnno.<clinit>())' in Type 'WibbleAnno'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - anonymous">
<compile files="SimpleAnonymous.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void Bar$1.<clinit>())' in Type 'Bar$1'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - inner">
<compile files="SimpleInner.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void Bar$Inner.<clinit>())' in Type 'Bar$Inner'"/>
<message kind="weave" text="Join point 'staticinitialization(void Bar$1.<clinit>())' in Type 'Bar$1'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - inner - 2">
<compile files="SimpleInner2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void Bar$Inner.<clinit>())' in Type 'Bar$Inner'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - inner - 3">
<compile files="SimpleInner3.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void Bar$Inner.foo())' in Type 'Bar$Inner' (SimpleInner3.java:12) advised"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - aspect">
<compile files="SimpleAspect.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void X.<clinit>())' in Type 'X'"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - e1">
<compile files="Errors1.java" options="-1.5 -showWeaveInfo">
<message kind="error" text="Syntax error on token "(", ")"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - e2">
<compile files="Errors5.java" options="-1.5 -showWeaveInfo">
<message kind="error" text="Syntax error on token ")", "(" expected"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr44365" title="type category type patterns - e3">
<compile files="Errors2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void Errors2.is(java.lang.String))' in Type"/>
<message kind="warning" text="test 18{}23"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr299062" title="verifyerror on atAj">
<compile files="Test.java Work.java SmartAspect.java Idempotent.java" options="-1.5"/>
<run class="Test">
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr298665" title="ambiguous method">
<compile files="Main.java" options="-1.5"/>
<run class="Main">
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr298388" title="declare mixin and generics">
<compile files="PR298388.java" options="-1.5"/>
<run class="PR298388">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr295491" title="model annotation npe">
<compile files="SpringConfigurableMixin.java" options="-1.5 -emacssym"/>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr292584" title="annotation around advice verifyerror">
<compile files="AbstractAspect.java,ClassWithJoinPoint.java,ConcreteAspect.java" options="-1.5"/>
<run class="ClassWithJoinPoint">
</stdout>
</run>
</ajc-test>
-
+
<!-- declare type warning -->
-
+
<ajc-test dir="bugs169/pr291206" title="declare type warning - 1">
<compile files="One.java" options="-1.5">
<message kind="warning" line="8" text="Nothing should be"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr291206" title="declare type warning - 2">
<compile files="Two.java" options="-1.5">
<message kind="warning" line="7" text="Missing foo()"/>
<message kind="warning" line="13" text="Missing foo()"/>
</compile>
</ajc-test>
-
+
<!-- testing build of model with one of these in -->
<ajc-test dir="bugs169/pr291206" title="declare type warning - 3">
<compile files="Two.java" options="-1.5 -emacssym">
<message kind="warning" line="13" text="Missing foo()"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs169/pr291206" title="declare type error - 1">
<compile files="Three.java" options="-1.5">
<message kind="error" line="7" text="Missing foo()"/>
<message kind="error" line="13" text="Missing foo()"/>
</compile>
</ajc-test>
-
-</suite>
\ No newline at end of file
+
+</suite>
<message kind="error" text="Compiler limitation: annotation value support not implemented for type java.lang.String[]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr394535" title="signatures">
<compile files="Bug.java" options="-1.5"/>
<compile files="Bug2.java" options="-1.5"/>
<run class="Bug2"/>
<run class="Bug"/>
</ajc-test>
-
+
<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"/>
<compile files="AspectB.java" outjar="aspect2.jar" options="-Xlint:ignore -1.5"/>
- <compile files="Code.java Blah.java" classpath="aspect.jar;aspect2.jar" options="-1.5"/>
- <compile files="AspectC.java" classpath="$sandbox" outjar="aspect3.jar" options="-Xlint:ignore -1.5"/>
+ <compile files="Code.java Blah.java" classpath="aspect.jar,aspect2.jar" options="-1.5"/>
+ <compile files="AspectC.java" classpath="$sandbox" outjar="aspect3.jar" options="-Xlint:ignore -1.5"/>
<compile files="AspectD.java" classpath="anno.jar" outjar="aspect4.jar" options="-Xlint:ignore -1.5"/>
-
+
<file deletefile="anno.jar"/>
- <run class="Code" ltw="META-INF/aop.xml" classpath=".;aspect.jar;aspect2.jar;aspectj3.jar;aspect4.jar">
+ <run class="Code" ltw="META-INF/aop.xml" classpath=".,aspect.jar,aspect2.jar,aspectj3.jar,aspect4.jar">
<stderr>
<line text="AspectJ Weaver Version"/>
<line text="register classloader"/>
<line text="using configuration"/>
<line text="register aspect AspectA"/>
<line text="deactivating aspect"/>
- <line text="register aspect AspectB"/>
- <line text="register aspect AspectC"/>
+ <line text="register aspect AspectB"/>
+ <line text="register aspect AspectC"/>
<line text="register aspect AspectD"/>
<line text="deactivating aspect 'AspectD' as it requires type 'a.b.c.Anno2' which cannot be found on the classpath"/>
<line text="Join point 'method-execution(void Code.main(java.lang.String[]))' in Type 'Code' (Code.java:7) advised by before advice from 'AspectC'"/>
- <line text="Join point 'staticinitialization(void Code.<clinit>())' in Type 'Code' (Code.java) advised by before advice from 'AspectB'"/>
+ <line text="Join point 'staticinitialization(void Code.<clinit>())' in Type 'Code' (Code.java) advised by before advice from 'AspectB'"/>
<line text="processing reweavable"/>
<line text="processing reweavable"/>
</stderr>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names">
<compile files="Code.java" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names 2">
<compile files="Code2.java" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names 3">
<compile files="Code3.java" options="-1.5">
- </compile>
+ </compile>
<run class="Code3" options="-1.5">
<stdout>
<line text="advice"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names 4">
- <compile files="Code4.java" options="-1.5"></compile>
+ <compile files="Code4.java" options="-1.5"></compile>
<compile files="Code4.java" options="-1.5" outjar="aspects.jar"/>
- <run class="Code4" options="-1.5">
+ <run class="Code4" options="-1.5">
<stdout>
<line text="advice"/>
<line text="advice"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names 5">
<compile files="Code5.java Code5a.java" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names 6">
<compile files="Code6.java" options="-1.5">
</compile>
<run class="Code6" options="-1.5">
- <stdout>
+ <stdout>
<line text="advice"/>
<line text="advice"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr398246" title="if pointcut names 7">
<compile files="Code7.java" options="-1.5">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389750" title="inconsistent class file">
<compile files="Code.aj" options="-1.5">
</compile>
<compile files="Clazz.java" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389750" title="inconsistent class file 2">
<compile files="Code2.aj" outjar="azpect.jar" options="-1.5">
</compile>
<compile files="Clazz2.java" aspectpath="azpect.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389750" title="inconsistent class file 3">
<compile files="Code3.aj" outjar="azpect.jar" options="-1.5">
</compile>
<compile files="Clazz3.java" aspectpath="azpect.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389750" title="inconsistent class file 4">
<compile files="Code4.aj" outjar="azpect.jar" options="-1.5">
</compile>
<compile files="Clazz4.java" aspectpath="azpect.jar" options="-1.5"/>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389752" title="annotation value error 1">
<compile files="Code.java" options="-1.5">
<message kind="error" text="Invalid annotation value 'AA', expected enum value"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389752" title="annotation value error 2">
<compile files="Code2.java" options="-1.5">
<message kind="error" text="Invalid annotation value 'AA', expected enum value"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs172/pr389752" title="annotation value error 3">
<compile files="Code3.java" options="-1.5">
<message kind="error" text="Invalid annotation value 'AA', expected enum value"/>
<ajc-test dir="bugs190/modules/fff" title="compile module including aspects">
<compile files="module-info.java pkg/Demo.java otherpkg/Azpect.java" modulepath="$runtimemodule" outjar="demomodule.jar" options="-1.9"/>
- <run modulepath="$runtimemodule;demomodule.jar" module="demo/pkg.Demo">
+ <run modulepath="$runtimemodule,demomodule.jar" module="demo/pkg.Demo">
<stdout>
<line text="Azpect running"/>
<line text="Demo running"/>
<message kind="weave" text="Join point 'method-execution(void aaa.bbb.A.main(java.lang.String[]))' in Type 'aaa.bbb.A' (A.java:4) advised by before advice from 'aspects.Azpect' (azpects.jar!Azpect.class:4(from Azpect.java))"/>
</compile>
<file deletefile="my.module.jar"/>
- <run classpath="my.module.woven.jar;azpects.jar" class="aaa.bbb.A">
+ <run classpath="my.module.woven.jar,azpects.jar" class="aaa.bbb.A">
<stdout>
<line text="Azpect running"/>
<line text="A running"/>
<message kind="weave" text="Join point 'method-execution(void aaa.bbb.A.main(java.lang.String[]))' in Type 'aaa.bbb.A' (A.java:4) advised by before advice from 'aspects.Azpect' (azpects.jar!Azpect.class:4(from Azpect.java))"/>
</compile>
<file deletefile="my.module.jar"/>
- <run classpath="my.module.woven.jar;azpects.jar" class="aaa.bbb.A">
+ <run classpath="my.module.woven.jar,azpects.jar" class="aaa.bbb.A">
<stdout>
<line text="Azpect running"/>
<line text="A running"/>
<ajc-test dir="bugs150" title="abstract perthis in @AspectJ">
<compile files="pr121197.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="different numbers of type vars">
<compile files="pr121575.aj" options="-1.9"/>
<run class="pr121575"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr121385" title="mixing aspect styles">
<compile files="A.java" options="-1.9"/>
<run class="A"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/tvars" title="different numbers of type vars - 2">
<compile files="Case1.aj" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void MyClass.read(java.lang.String))' in Type 'MyClass' (Case1.aj:13) advised by before advice from 'MyAspect' (Case1.aj:5)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/tvars" title="different numbers of type vars - 3">
<compile files="Case2.aj" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void MyClass.read(java.lang.Number))' in Type 'MyClass' (Case2.aj:13) advised by before advice from 'MyAspect' (Case2.aj:5)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/tvars" title="different numbers of type vars - 4">
<compile files="Case3.aj" options="-1.9 -showWeaveInfo">
<message kind="error" line="9" text="The type MyClass<T,E> must implement the inherited abstract method MyInterface<T>.read(T)"/>
<compile files="pr118698.aj"/>
<run class="pr118698"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="modifier overrides">
<compile files="pr119749.aj" options="-1.9">
<message kind="warning" line="26" text="C E.*()"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr120826" pr="120826" title="varargs NPE">
<compile files="TestVarargs.java" options="-1.9"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr112476/case1" title="binary weaving decp broken">
<compile files="lib/A.java,lib/B.java,lib/C.java" outjar="library.jar" options="-1.9"/>
<!-- library.jar on the aspectpath here just for resolution when compiling SuperC -->
<compile aspectpath="library.jar" files="weaved/SuperC.java" outjar="newsuper.jar" options="-1.9"/>
- <compile inpath="library.jar;newsuper.jar" files="weaved/DeclareAspect.aj" options="-1.9 -showWeaveInfo">
+ <compile inpath="library.jar,newsuper.jar" files="weaved/DeclareAspect.aj" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Setting superclass of type 'lib.C' (C.java) to 'weaved.SuperC' (DeclareAspect.aj)"/>
</compile>
<run class="weaved.SuperC">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114005" title="Annotated ITDFs - 1">
<compile files="Declaration1.java" options="-1.9"/>
<run class="Declaration1">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="114495" title="parameterized pointcut and advice">
<compile files="Pr114495.aj" options="-1.9">
<message kind="warning" line="3" text="going()"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="112880" title="double parameter generic abstract type">
<compile files="Pr112880.aj" options="-1.9">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114005" title="Annotated ITDFs - 2">
<compile files="Declaration2.java" options="-1.9"/>
<run class="Declaration2">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="114054" title="pertarget and negated pointcut">
<compile files="Pr114054.aj" options=""/>
<run class="Pr114054"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="121385" title="mixing styles">
<compile files="pr121385.aj" options="-1.9"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 1">
<compile files="Basic1.java" options="-1.9"/>
<run class="Basic1"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/decps" title="decps - 1b">
<compile files="Basic1b.java" options="-1.9"/>
<run class="Basic1b"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 2">
<compile files="Basic2.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void X$I.m2())' in Type 'X' (Basic2.java:15) advised by before advice from 'X' (Basic2.java:23)"/>
<message kind="weave" text="Join point 'method-execution(void Basic2.main(java.lang.String[]))' in Type 'Basic2' (Basic2.java:2) advised by before advice from 'X' (Basic2.java:23)"/>
</compile>
<run class="Basic2"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/decps" title="decps - 2b">
<compile files="Basic2b.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void Basic2b.main(java.lang.String[]))' in Type 'Basic2b' (Basic2b.java:4) advised by before advice from 'X' (Basic2b.java:27)"/>
</compile>
<run class="Basic2b"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 3">
<compile files="Basic3.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Extending interface set for type 'Basic3' (Basic3.java) to include 'X$I' (Basic3.java)"/>
<message kind="weave" text="Type 'X$I' (Basic3.java) has intertyped method from 'X' (Basic3.java:'void X$I.m4()')"/>
</compile>
<run class="Basic3"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/decps" title="decps - 3b">
<compile files="Basic3b.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'X' (Basic3b.java:35)"/>
</compile>
<run class="Basic3b"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/decps" title="decps - 3c">
<compile files="Basic3c.java" options="-1.9">
<message kind="error" text="@DeclareParents: defaultImpl="X$IImpl" has a no argument constructor, but it is of incorrect visibility"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119570" pr="119570" title="spurious override method warning">
<compile files="NodeImpl.java,INode.java,ParameterizedDP.java" options="-1.9"/>
<run class="bugs.ParameterizedDP"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119570" pr="119570" title="spurious override method warning - 2">
<compile files="ParameterizedDP.java,NodeImpl.java,INode.java" options="-1.9"/>
<run class="bugs.ParameterizedDP"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119570" pr="119570" title="spurious override method warning - 3">
<compile files="SimpleTest.java" options="-1.9"/>
<run class="SimpleTest"/>
<ajc-test dir="bugs150/pr120521" pr="120521" title="named pointcut not resolved in pertarget pointcut">
<compile files="PerTargetSubaspectError.java"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr119210" pr="119210" title="autoboxing around advice - 1">
<compile files="TestLib.java,ThreadAspectLib.java" options="-1.9"/>
<line text="obtaining five, got 3"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119210" pr="119210" title="autoboxing around advice - 2">
<compile files="TestLib2.java,ThreadAspectLib2.java" options="-1.9"/>
<run class="TestLib2">
<line text="obtaining five, got 3"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119210" pr="119210" title="autoboxing around advice - 3">
<compile files="TestLib2.java,ThreadAspectLib2.java">
<message kind="error" line="16" text="incompatible return type applying to method-call(java.lang.Integer TestLib2.getFive())"/>
<message kind="error" line="4" text="incompatible return type applying to method-call(java.lang.Integer TestLib2.getFive())"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119539" pr="119539" title="generic pertypewithin aspect - 1">
<compile files="GenericPerTypeWithin.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'constructor-execution(void bugs.C.<init>())' in Type 'bugs.C' (GenericPerTypeWithin.java:10) advised by before advice from 'bugs.A' (GenericPerTypeWithin.java:21)"/>
<message kind="weave" text="Join point 'constructor-execution(void bugs.C.<init>())' in Type 'bugs.C' (GenericPerTypeWithin.java:10) advised by before advice from 'bugs.A' (GenericPerTypeWithin.java:20)"/>
</compile>
<run class="bugs.GenericPerTypeWithin"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119539" pr="119539" title="generic pertypewithin aspect - 2">
<compile files="GenericPerTypeWithin2.java" options="-1.9 -showWeaveInfo">
<message kind="error" line="24" text="a generic super-aspect must be fully parameterized in an extends clause"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119539" pr="119539" title="generic pertypewithin aspect - 3">
<compile files="GenericPerTypeWithin3.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'constructor-execution(void bugs.GenericPerTypeWithin3$C.<init>())' in Type 'bugs.GenericPerTypeWithin3$C' (GenericPerTypeWithin3.java:15) advised by before advice from 'bugs.GenericPerTypeWithin3$A' (GenericPerTypeWithin3.java:10)"/>
<message kind="warning" line="15" text="Singleton.creation()"/>
</compile>
<run class="bugs.GenericPerTypeWithin3"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr117854" pr="117854" title="broken switch transform">
<compile files="BrokenSwitch.java" options=""/>
<run class="BrokenSwitch"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr119749" pr="119749" title="incorrect exception signature matching">
- <compile files="InheritedThrows.java" options="-showWeaveInfo">
+ <compile files="InheritedThrows.java" options="-showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void InheritedThrows$NestedClassBoth.m())' in Type 'InheritedThrows$NestedClassBoth' (InheritedThrows.java:24) advised by afterThrowing advice from 'InheritedThrows$A' (InheritedThrows.java:4)"/>
<message kind="weave" text="Join point 'method-execution(void InheritedThrows$NestedClass1.m())' in Type 'InheritedThrows$NestedClass1' (InheritedThrows.java:16) advised by afterThrowing advice from 'InheritedThrows$A' (InheritedThrows.java:4)"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr118599" pr="118599" title="ambiguous method when binary weaving - 1">
<!-- separate compilation was failing -->
<compile files="Attributable.java" outjar="foo.jar" options="-1.9"/>
<compile files="AnAttributedClass.java" aspectpath="foo.jar" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr118599" pr="118599" title="ambiguous method when binary weaving - 2">
<!-- complete compilation works -->
<compile files="Attributable.java,AnAttributedClass.java" options="-1.9"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="112756" title="pointcut expression containing 'assert'">
<compile files="Pr112756.aj" options="-warn:assertIdentifier -Xdev:Pinpoint"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr118781" pr="118781" title="verify error with around advice array sigs">
<compile files="MyMain.java,MyAspect.java,MyClass.java" options="-XnoInline"/>
<run class="blah.MyMain"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr117681" pr="117681" title="at declare parents">
<compile files="Test.java,TestAspect.java,Audit.java,AuditImpl.java" options="-1.9"/>
<run class="Test"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr120474" pr="120474" title="Dollar classes">
<compile files="$ProxyPr120474.java"/>
<compile files="X.aj" options="-outxml"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr111667" pr="111667" title="lint for advice sorting">
<compile files="A.java,X.java,Y.java" options="-1.9 -Xlint:warning">
<message kind="warning" line="9" text="at this shadow method-execution(void A.m1()) no precedence is specified between advice applying from aspect X and aspect Y [Xlint:unorderedAdviceAtShadow]"/>
<message kind="error" line="8" text="Type mismatch: cannot convert from String to int"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr118326" pr="118326" title="illegal initialization - 2">
<compile files="Foo.java,Bar.java" options="-1.9">
<message kind="error" line="2" text="Type mismatch: cannot convert from null to int"/>
<message kind="error" line="8" text="Type mismatch: cannot convert from String to int"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr117296" pr="117296" title="self bounding generic types">
<compile files="PropertySupport.java" options="-1.9"/>
<run class="PropertySupport"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="113368" title="thisJoinPointStaticPart in if test">
<compile files="Pr113368.aj"/>
<run class="Pr113368">
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr87525" pr="87525" title="privilege problem with switch">
<compile files="A.java,B.java">
<message kind="error" line="5" text="Fields accessible due to an aspect being privileged can not be used in switch statements"/>
<compile files="PointcutLibrary.aj,ReflectOnAjcCompiledPointcuts.java" options="-1.9"></compile>
<run class="ReflectOnAjcCompiledPointcuts" classpath="../lib/bcel/bcel.jar"/>
</ajc-test>
-
+
<ajc-test dir="java5/reflection" title="reflection on itds">
<compile files="InterTypeDeclarations.aj,ReflectOnCodeStyleITDs.java" options="-1.9 -Xlint:ignore -makeAjReflectable"></compile>
<run class="ReflectOnCodeStyleITDs" classpath="../lib/bcel/bcel.jar">
<line text="public C.new(int, int, int)"/>
<line text="C.new(int, int)"/>
<line text="private C.new(int)"/>
- <line text="private C.new(int)"/>
+ <line text="private C.new(int)"/>
<line text="public C.new(int, int, int)"/>
<line text="public C.new(int, int, int)"/>
<line text="int C.getY()"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="compatibility/case1" title="generating code for a 1.2.1 runtime - 1">
<compile files="Simple.java" options="-Xajruntimetarget:1.2"/>
<run class="Simple" classpath="../lib/aspectj/lib/aspectjrt121.jar"/>
</ajc-test>
-
+
<ajc-test dir="compatibility/case2" title="generating code for a 1.2.1 runtime - 2">
<compile files="TrackingErrors.aj,A.java" options="-Xajruntimetarget:1.2 -Xlint:ignore"/>
<run class="A" classpath="../lib/aspectj/lib/aspectjrt121.jar"/>
</ajc-test>
-
+
<ajc-test dir="java5/reflection" title="arg names in advice annotations">
<compile files="AdviceWithArgs.aj" options="-1.9"></compile>
<run class="AdviceWithArgs"/>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/reflection" pr="114322" title="reflection on abstract ITDs (Billing example)">
<compile files="ReflectBilling.java,Billing.aj" options="-1.9 -makeAjReflectable"/>
<run class="ReflectBilling">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="103157" title="returning(Object) binding">
<compile files="Pr103157.aj"/>
<run class="Pr103157">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="declare soft and adviceexecution" pr="103051">
<compile files="Pr103051.aj" options="-Xdev:Pinpoint"/>
</ajc-test>
<compile files="Pr103097.aj" options="-Xlint:ignore"/>
<run class="Pr103097"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Range problem">
<compile files="pr109614.java"/>
<run class="pr109614"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114436" title="ClassFormatError binary weaving perthis">
<compile files="SimpleTrace.aj,ConcreteSimpleTracing.aj" outjar="aspects.jar"/>
<compile files="TestClass.java" aspectpath="aspects.jar"/>
<run class="TestClass"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 1">
<compile files="Consts.java,TestNPE.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="parameterized type and around advice">
<compile files="pr115250.aj" options="-1.9 -Xlint:ignore">
<!-- this first error happens twice, once for each piece of around advice -->
<message kind="error" line="27" text="incompatible return type applying to constructor-execution(void pr115250$C.<init>())"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="parameterized type and around advice - 2">
<compile files="pr115250_2.aj" options="-1.9 -Xlint:ignore -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(pr115250_2$C pr115250_2$C.foo())' in Type 'pr115250_2$C' (pr115250_2.aj:7) advised by around advice from 'pr115250_2$A' (pr115250_2.aj:22)"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr115788" title="parser exception">
<compile files="AAA.java">
<message kind="warning" line="3" text="no match for this type name: Screen"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 2">
<compile files="Consts2.java,TestNPE2.java" options="-1.9">
<message kind="error" line="2" text="The field Consts2.a.Consts2.A_CONST is not visible"/>
<!-- message kind="error" line="2" text="The import a.Consts2.A_CONST cannot be resolved"/-->
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 3">
<compile files="Consts3.java,TestNPE3.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/staticImports" title="import static java.lang.System.out">
<compile files="StaticImport.aj" options="-1.9"/>
</ajc-test>
<message kind="error" line="2" text="Cannot make inter-type declarations on type variables"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="ITDC with no explicit cons call">
<compile files="Pr62606.aj" options="-1.9">
<message kind="warning" line="6" text="[Xlint:noExplicitConstructorCall]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="using same type variable in ITD">
<compile files="SameTypeVariable.aj" options="-1.9">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="capturebinding wildcard problem">
<compile files="pr114744.aj" options="-1.9">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Anonymous types and nome matching">
<compile files="Pr73050.aj" outjar="jar1.jar">
<message kind="warning" line="16" text="anonymous types should be matched by a * wild card"/>
</compile>
<compile inpath="jar1.jar">
- <message kind="warning" line="0" text="anonymous types should be matched by a * wild card"/>
+ <message kind="warning" line="0" text="anonymous types should be matched by a * wild card"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr86903" title="bcelrenderer bad">
<compile files="GenericService.java,Service.java,Main.java,BadWormhole.java"/>
<run class="Main"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114343" title="field-get, generics and around advice">
<compile files="Test.java,Test1.java,Test2.java,TestAspect.aj" options="-1.9">
<message kind="warning" line="7" text="unchecked conversion when advice applied at shadow field-get(java.util.Set Test1.intsSet), expected java.util.Set<java.lang.Integer> but advice uses java.util.Set"/>
</compile>
<run class="TestAspect"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113947/case1" title="maws generic aspect - 1">
<compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.9">
<message kind="error" line="6" text="Cannot make inter-type declarations on type variables"/>
<message kind="error" line="12" text="Cannot make inter-type declarations on type variables"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="aspectOf and generic aspects">
<compile files="pr115237.aj" options="-1.9"/>
<run class="pr115237"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr114343/case3" title="field-get, generics and around advice - 3">
<compile files="Test.java,TTT.java,TestAspect.java" options="-1.9"/>
<run class="TestAspect">
<ajc-test dir="bugs150/pr113947/case2" title="maws generic aspect - 2">
<compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113861" title="field-get problems with generic field">
<compile files="Test.java,TestAspect.java" options="-1.9"/>
<run class="com.Test"/>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 1">
<compile files="pr99191_1.java" options="-1.9">
<message kind="error" line="4" text="The field 'int C.noSuchField' does not exist"/>
<message kind="error" line="5" text="The field 'int B.noSuchField' does not exist"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/bugs/lists/case1" title="generics and ITD overrides - 1">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.9">
</compile>
<run class="IdentifiableAspect"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/bugs/lists/case2" title="generics and ITD overrides - 2">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.9">
</compile>
<run class="IdentifiableAspect"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs/lists/case3" title="generics and ITD overrides - 3">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.9">
</compile>
<run class="IdentifiableAspect"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/bugs/lists/case4" title="generics and ITD overrides - 4">
<compile files="Identifiable.java,Bean.java,LongIdentifiable.java,IdentifiableAspect.java" options="-1.9">
</compile>
<run class="IdentifiableAspect"/>
- </ajc-test>
+ </ajc-test>
<!-- Currently a warning doesn't occur if the annotation is already on the field
(see bug 113029). If this is fixed, need to add check for this warning to this
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 2">
<compile files="pr99191_2.java" options="-1.9">
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 3">
<compile files="pr99191_3.java" options="-1.9">
<message kind="error" line="4" text="The method 'public * C.noSuchMethod(..)' does not exist"/>
<message kind="error" line="5" text="The method '* B.noSuchMethod(..)' does not exist"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 4">
<compile files="pr99191_4.java" options="-1.9">
<message kind="warning" text="void C.amethod() - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 5">
<compile files="pr99191_5.java" options="-1.9">
<message kind="error" line="4" text="The method 'C.new(java.lang.String)' does not exist"/>
<message kind="error" line="5" text="The method 'B.new(int)' does not exist"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 6">
<compile files="pr99191_6.java" options="-1.9">
<message kind="warning" text="void C.<init>(int) - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr113630/case1" title="IncompatibleClassChangeError - errorscenario">
<compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.9">
<message kind="warning" line="9" text="Failing match because annotation 'javaBean' on type 'Bean' has SOURCE retention. Matching allowed when RetentionPolicy is CLASS or RUNTIME"/>
<message kind="error" line="18" text="The method addPropertyChangeListener(String, BeanTestCase) is undefined for the type Bean"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr113630/case2" title="IncompatibleClassChangeError - workingscenario">
<compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.9"/>
<run class="BeanTestCase"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="Generics ClassCastException">
<compile files="pr113445.aj" options="-1.9,-emacssym"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="test illegal change to pointcut declaration">
<compile files="pr111915.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void SomeClass.doSomething())' in Type 'SomeClass' (pr111915.java:4) advised by around advice from 'DoesntCompile' (pr111915.java:15)"/>
<message kind="weave" text="Extending interface set for type 'SomeClass' (pr111915.java) to include 'java.io.Serializable' (pr111915.java)"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/bridgeMethods" pr="72766" title="Ignore bridge methods">
<compile files="AspectX.aj" inpath="testcode.jar" options="-showWeaveInfo">
<run class="C"/>
</ajc-test>
- <ajc-test dir="java5/pseudoKeywords"
+ <ajc-test dir="java5/pseudoKeywords"
title="method called around in class">
<compile files="MethodCalledAround.java">
</compile>
</ajc-test>
- <ajc-test dir="java5/pseudoKeywords"
+ <ajc-test dir="java5/pseudoKeywords"
title="method called around in aspect">
<compile files="MethodCalledAroundAspect.java">
<message kind="error" line="2"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="64568" title="clear error message on itd with type pattern">
<compile files="pr64568.aj">
<message line="4" kind="error" text="Syntax error on token "*", delete this token"/>
<compile files="pr107486.aj">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="102210" title="NullPointerException trying to compile">
<compile files="PR102210.java"/>
<run class="PR102210">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/compliance" title="java 5 pointcuts and declares at pre-java 5 compliance levels">
<compile files="AJ5FeaturesAtJ14.aj" options="-1.4">
<message kind="error" line="3" text="the @annotation pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="9" text="the @args pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="declare @type is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="annotations are only available if source level is 1.5 or greater"/>
- <message kind="error" line="15" text="cannot convert from Foo to Annotation"/>
+ <message kind="error" line="15" text="cannot convert from Foo to Annotation"/>
<message kind="error" line="17" text="declare @method is only supported at Java 5 compliance level or above"/>
<message kind="error" line="17" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="17" text="cannot convert from Foo to Annotation"/>
<message kind="error" line="19" text="declare @field is only supported at Java 5 compliance level or above"/>
<message kind="error" line="19" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="19" text="cannot convert from Foo to Annotation"/>
- <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
+ <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
<message kind="error" line="21" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="21" text="cannot convert from Foo to Annotation"/>
<message kind="error" line="25" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
<message kind="error" line="27" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/compliance" title="java 5 pointcuts and declares at pre-java 5 compliance levels - 1.7">
<compile files="AJ5FeaturesAtJ14.aj" options="-1.4">
<message kind="error" line="3" text="the @annotation pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="9" text="the @args pointcut expression is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="declare @type is only supported at Java 5 compliance level or above"/>
<message kind="error" line="15" text="annotations are only available if source level is 1.5 or greater"/>
- <message kind="error" line="15" text="Foo is not an annotation type"/>
+ <message kind="error" line="15" text="Foo is not an annotation type"/>
<message kind="error" line="17" text="declare @method is only supported at Java 5 compliance level or above"/>
<message kind="error" line="17" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="17" text="Foo is not an annotation type"/>
<message kind="error" line="19" text="declare @field is only supported at Java 5 compliance level or above"/>
<message kind="error" line="19" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="19" text="Foo is not an annotation type"/>
- <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
+ <message kind="error" line="21" text="declare @constructor is only supported at Java 5 compliance level or above"/>
<message kind="error" line="21" text="annotations are only available if source level is 1.5 or greater"/>
<message kind="error" line="21" text="Foo is not an annotation type"/>
<message kind="error" line="25" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
<message kind="error" line="27" text="annotation type patterns are only supported at Java 5 compliance level or above"/>
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs150" pr="91114" title="before and after are valid identifiers in classes, part 2">
<compile files="pr91114.aj">
</compile>
<message line="9" kind="error" text="can't override final pointcut Base.foo()"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="78707" title="before returning advice not allowed!">
<compile files="pr78707.aj">
<message line="3" kind="error" text="Syntax error on token "returning", delete this token"/>
<message line="3" kind="error" text="Syntax error on token "throwing", delete this token"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="104529" title="@SuppressWarnings should suppress">
<compile files="pr104529.aj" options = "-1.9 -warn:+unchecked">
<message line="11" kind="warning" text="needs unchecked conversion"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="79523" title="declare warning : foo(str) : ...;">
<compile files="pr79523.aj">
<message line="4" kind="warning" text="no match for this type name: str"/>
<message line="4" kind="error" text="args() pointcut designator cannot be used in declare statement"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)">
<compile files="pr107059.aj">
<message line="3" kind="error" text="Syntax error on token "(", "name pattern" expected"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="107059" title="target(@Foo *)">
<compile files="pr107059_2.aj" options="-1.9">
<message kind="error" line="4" text="wildcard type pattern not allowed"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="varargs with type variable">
<compile files="ParameterizedVarArgMatch.aj" options="-1.9">
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="bugs150" pr="108104" title="multiple anonymous inner classes 2">
<compile files="pr108104.aj" options="-1.9">
</compile>
<compile files="package1/Bean.java,package2/Bean.java,package2/propertyChanger.java,package3/pr108425.aj" options="-1.9 -Xlint:ignore">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/" pr="108104" title="inner types and type variables">
<compile files="ShapeCommandMap.java" options="-1.9">
</compile>
<message kind="error" line="8" text="throwing formal 'RuntimeException' must be declared as a parameter in the advice signature"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr106130" pr="106130" title="test weaving with > 256 locals">
<compile files="AroundLotsOfVars.java LotsOfVars.java" options="-preserveAllLocals"/>
<run class="LotsOfVars">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr87376" title="structure model npe on type not found">
<compile files="I.java,NPE.aj" options="-emacssym">
<message kind="error" line="8" text="I cannot be resolved to a type"/>
<message kind="error" line="10" text="I cannot be resolved to a type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="83311" title="overriding/polymorphism error on interface method introduction">
<compile files="pr83311.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="103266" title="NPE on syntax error">
<compile files="pr103266.aj">
<message kind="error" line="41" text="ConnectionRequestContext cannot be resolved to a type"/>
<message kind="error" line="41" text="Type mismatch: cannot convert from new ConnectionRequestContext(){} to WorkerExample.RequestContext"/>
</compile>
</ajc-test>
-
+
<ajc-test title="itd override with no exception clause" dir="bugs150">
<compile files="pr83377.aj"></compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr84260" vm="1.5" title="static import failures">
<compile files="A.java,I1.java,I2.java" options="-1.9"/>
<run class="I1">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test title="anonymous inner class with method returning type parameter" pr="107898" dir="bugs150">
<compile files="pr107898.aj" options="-1.9"></compile>
</ajc-test>
<message kind="error" line="10" text="incompatible return type applying to method-execution(java.lang.Number[] pr72668.getThoseInts())"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="decp" pr="80249" title="Order of types passed to compiler determines weaving behavior">
<compile files="A.java,B.java,AspectX.java"/>
<run class="B"/>
<compile files="B.java,A.java,AspectX.java"/>
<run class="B"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="99228" vm="1.5" title="ITD of a field into a generic class">
<compile files="PR99228.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="98320" vm="1.5" title="intertype with nested generic type">
<compile files="PR98320.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="decs" pr="42743" title="declare soft of runtime exception">
<compile files="DeclareSoftRuntimeException.aj">
<message kind="warning" line="3" text="MyRuntimeException will not be softened as it is already a RuntimeException"/>
</compile>
<run class="VerifyError"/>
</ajc-test>
-
+
<ajc-test dir="bugs" pr="61568" title="Various kinds of ambiguous bindings">
<compile files="AmbiguousBindings.aj">
<message line="17" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
<message line="25" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs" pr="61658" title="ambiguous args">
<compile files="PR61658.java">
<message line="17" text="ambiguous binding of parameter(s) a, b across '||' in pointcut"></message>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="78021" title="Injecting exception into while loop with break statement causes catch block to be ignored">
<compile files="PR78021.java"/>
<run class="PR78021"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr99089" vm="1.5" pr="99089" title="ArrayIndexOutOfBoundsException - Generics in privileged aspects">
<compile files="DataClass.java,TracingAspect.java" options="-1.9"/>
<run class="DataClass">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="79554" title="Return in try-block disables catch-block if final-block is present">
<compile files="PR79554.java"/>
<run class="PR79554"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="82570" title="Weaved code does not include debug lines">
<compile files="PR82570_1.java"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="83303" title="compiler error when mixing inheritance, overriding and polymorphism">
<compile files="PR83303.java"/>
</ajc-test>
<compile files="PR83645.java" options="-Xlint:ignore"/>
<run class="PR83645"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="bad asm for enums" vm="1.5">
<compile files="Rainbow.java" options="-emacssym,-1.9,-Xset:minimalModel=false"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="10461" title="missing name pattern">
<compile files="PR106461.aj">
<message kind="error" line="3" text="Syntax error on token "(", "name pattern" expected"/>
<message kind="error" line="7" text="Syntax error on token ".", "name pattern" expected"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="106634" title="IllegalStateException unpacking signature of nested parameterized type">
<compile files="pr106634.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="(@Foo *)+ type pattern parse error">
<compile files="AnnotationPlusPatternParseError.aj" options="-1.9"/>
<!-- next line needs the change for inherited anno matching... -->
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="78314" title="good error message for unmatched member syntax">
<compile files="pr78314.aj" options="-1.9">
<message kind="error" line="5" text="Syntax error on token "foo", no accurate correction available"/>
<message kind="error" line="5" text="Syntax error on token "foo", no accurate correction available"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="108377" title="itd field access inside itd method">
<compile files="pr108377.aj"/>
<run class="pr108377"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="95992" title="inner type of generic interface reference from parameterized type">
<compile files="pr95992.aj" options="-1.9"/>
</ajc-test>
<ajc-test dir="bugs150" pr="104024" title="inner class passed as argument to varargs method">
<compile files="pr104024.aj" options="-1.9"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="107858" title="inlined field access in proceed call">
<compile files="pr107858.aj" options="-1.9">
<message kind="error" line="9" text="too many arguments to proceed, expected 0"></message>
<message kind="error" line="10" text="too many arguments to proceed, expected 0"></message>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 1">
<compile files="pr71159.aj">
<message kind="warning" line="26" text="should match"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 2">
<compile files="PrivateITD.aj">
<message kind="warning" line="28" text="should match"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 3">
<compile files="pkg1/A.java,pkg1/B.java,pkg1/C.java,pkg2/ITDInDiffPackage.aj">
<message kind="warning" line="10" text="should match"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="59196" title="args generated correctly for advice execution join point">
<compile files="pr59196.aj" options="-XnoInline -1.9"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="74048" title="no unused warnings on aspect types">
<compile files="pr74048.aj" options="-warn:unusedPrivate"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="59397" title="synthetic arguments on itd cons are not used in matching">
<compile files="pr59397.aj">
<message line="6" kind="warning" text="should match"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="108602" title="parse generic type signature with parameterized type in interface">
<compile files="pr108602.java" options="-1.9"/>
</ajc-test>
<ajc-test dir="bugs150" pr="105479" title="declare parents introducing override with covariance">
<compile files="pr105479.aj" options="-1.9"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="105479" title="override and covariance with decp - runtime">
<compile files="pr105479part2.aj" options="-1.9"/>
<run class="pr105479part2">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr105479/case2" pr="105479" title="override and covariance with decp - binary weaving">
<compile files="ReturnTypeTest.java" outjar="jar1.jar" options="-1.9 -Xlint:ignore"/>
<compile files="ReturnTypeTester.java" outjar="jar2.jar" options="-1.9"/>
- <compile inpath="jar1.jar;jar2.jar" options="-1.9"/>
+ <compile inpath="jar1.jar,jar2.jar" options="-1.9"/>
<run class="ReturnTypeTester"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="102212" title="abstract synchronized itdms not detected">
<compile files="pr102212.aj">
<message line="7" kind="error" text="The abstract method _abstract in type Parent can only set a visibility modifier, one of public or protected"/>
<compile files="pr101606.aj" options="-warn:unusedPrivate">
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr99125" pr="99125" title="itd interface method already existing on interface">
<compile files="p/pr99125.aj,p/I.java,p/J.java" options="-1.9">
</compile>
<message kind="error" line="10" text="inter-type declaration from X conflicts with existing member"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr87530" pr="87530" title="final itd methods on interfaces">
<compile files="FinalITDMOnInterface.aj">
<message kind="error" line="12" text="Cannot override the final method from A.TestInterface"></message>
<message kind="warning" line="21" text="matched join point from sub advice"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="108816" title="advising cflow advice execution">
<compile files="pr108816.aj" >
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr108902" pr="108902" title="no type mismatch on generic types in itds">
<compile files="Subject.java,Observer.java,ObserverProtocol.aj" >
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" pr="108903" title="super call in ITD">
<compile files="pr108903.aj" >
<message kind="error" line="14" text="The method print() is undefined for the type Object"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" pr="109042" title="no unused parameter warnings for synthetic advice args">
<compile files="pr109042.aj" options="-warn:+unusedArgument -warn:+unusedPrivate -warn:+unusedImport -1.9">
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="109486" title="Internal compiler error (ClassParser.java:242)">
<compile files="PR109486.java" >
<message kind="error" line="1" text="The class PR109486 can be either abstract or final, not both"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="109124" title="no verify error with set on inner type">
<compile files="VerifyErrorOnSet.aj" options="-1.9" >
</compile>
<run class="test.VerifyErrorOnSet"/>
<compile files="pr106874.aj" options="-1.9" >
</compile>
- <run class="pr106874"/>
- </ajc-test>
-
+ <run class="pr106874"/>
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="108826" title="cant find type error with generic return type or parameter">
<compile files="pr108826.aj" options="-1.9 -emacssym" >
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="105181" title="no verify error on generic collection member access">
<compile files="pr105181.aj" options="-1.9">
</compile>
<run class="pr105181"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr108903" pr="108903" title="super call in ITD - part 2">
<compile files="com/designpattern/decorator/HeaderDecorator.aj,com/designpattern/decorator/Main.java,com/designpattern/decorator/Order.java,com/designpattern/decorator/OrderDecorator.aj,com/designpattern/decorator/SalesOrder.java" options="-1.9" >
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150/pr103740" pr="103740" title="Compiler failure on at_annotation">
<compile files="AroundAdvice.aj" options="-1.9,-showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void C.m1())' in Type 'C' (AroundAdvice.aj:12) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
<message kind="weave" text="Join point 'method-execution(void C.m3())' in Type 'C' (AroundAdvice.aj:14) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr106554" pr="106554" title="Problem in staticinitialization with pertypewithin aspect">
<compile files="A.aj" options="-showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void A.<clinit>())' in Type 'A' (A.aj:1) advised by before advice from 'StopsInit' (A.aj:21)"/>
<line text="test = 1"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/SimpleInsuranceFailure" title="raw and generic type conversion with itd cons">
<compile files="" options=" -emacssym, -sourceroots ." >
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="@annotation binding with around advice">
<compile files="AnnotationBinding.aj" options="-1.9"/>
<run class="AnnotationBinding"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="declare parents on a missing type">
<compile files="Pr76374.aj" options="-1.9">
<message kind="warning" line="3" text="no match for this type name"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="parameterized generic methods">
<compile files="Pr109283.aj" options="-1.9 -warn:indirectStatic">
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="call join points in anonymous inner classes">
<compile files="pr104229.aj" options="-1.9">
<message kind="warning" line="54" text="bingo"/>
<ajc-test dir="bugs150" title="default impl of Runnable">
<compile files="pr88900.aj" options="-Xdev:Pinpoint">
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="bugs150" title="array clone call join points in 1.4 vs 1.3">
<compile files="pr102933.aj" options="-1.3">
<message kind="warning" line="7" text="a call within pr102933"/>
</compile>
<compile files="pr102933.aj" options="-1.4">
<message kind="warning" line="7" text="a call within pr102933"/>
- </compile>
+ </compile>
<compile files="pr102933.aj" options="-1.9">
<message kind="warning" line="7" text="a call within pr102933"/>
- </compile>
- </ajc-test>
-
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="100195" title="debug info in around advice inlining">
<compile files="pr100195.aj">
</compile>
<run class="pr100195"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" title="weaveinfo message for declare at method on an ITDd method">
<compile files="pr113073.java" options="-1.9 -showWeaveInfo">
<message kind="weave" text="Type 'C' (pr113073.java) has intertyped constructor from 'D' (pr113073.java:'void C."/>
<message kind="weave" text="'public void C.new(String)' (pr113073.java) is annotated with @Annotation constructor annotation from 'B' (pr113073.java:4)"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr113447" title="no verify error with two this pcds">
<compile files="PR113447.java">
</compile>
<run class="PR113447"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr113447" title="no verify error with two at this pcds">
<compile files="PR113447a.java" options="-1.9">
<message kind="error" text="circular pointcut declaration involving: pc()"/>
<message kind="error" line="20" text="circular pointcut declaration involving: pc2()"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150" title="no StackOverflowError with circular pcd in generic aspect - 2">
<compile files="pr115235b.aj" options="-1.9">
<!-- ============================================================================ -->
<!-- ============================================================================ -->
-
+
<!-- atOverride tests with ITDs -->
-
+
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs">
<compile files="AtOverride.aj" options="-1.9"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 7">
<compile files="AtOverride7.aj" options="-1.9"/>
</ajc-test>
-
+
<!-- end of atOverride tests with ITDs -->
<ajc-test dir="../docs/dist/doc/examples/introduction" title="introduction sample" vm="1.5">
<ajc-test dir="java5/varargs" title="varargs in constructor sig" vm="1.5">
<compile files="Pr88652.aj" options="-1.9">
<message kind="warning" line="8" text="should match"/>
- <message kind="warning" line="9" text="should match"/>
+ <message kind="warning" line="9" text="should match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/varargs" title="Varargs with .. in pointcut" vm="1.5">
- <compile files="pr93356.aj" options="-1.9">
+ <compile files="pr93356.aj" options="-1.9">
<message kind="warning" line="5" text="a"/>
- <message kind="warning" line="5" text="b"/>
- <message kind="warning" line="5" text="c"/>
- <message kind="warning" line="5" text="d"/>
- <message kind="warning" line="5" text="e"/>
- <message kind="warning" line="5" text="k"/>
+ <message kind="warning" line="5" text="b"/>
+ <message kind="warning" line="5" text="c"/>
+ <message kind="warning" line="5" text="d"/>
+ <message kind="warning" line="5" text="e"/>
+ <message kind="warning" line="5" text="k"/>
<message kind="warning" line="5" text="l"/>
-
+
<message kind="warning" line="4" text="f"/>
- <message kind="warning" line="4" text="g"/>
- <message kind="warning" line="4" text="h"/>
- <message kind="warning" line="4" text="i"/>
- <message kind="warning" line="4" text="j"/>
-
- <message kind="warning" line="7" text="f"/>
+ <message kind="warning" line="4" text="g"/>
+ <message kind="warning" line="4" text="h"/>
+ <message kind="warning" line="4" text="i"/>
+ <message kind="warning" line="4" text="j"/>
+
+ <message kind="warning" line="7" text="f"/>
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" title="star varargs pattern" vm="1.5">
<compile files="StarVarargsPattern.aj" options="-1.9">
<message kind="warning" line="5" text="you used a varargs signature"/>
- <message kind="warning" line="7" text="you used a varargs signature"/>
+ <message kind="warning" line="7" text="you used a varargs signature"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations" title="invalid cons syntax" vm="1.5">
<compile files="SyntaxError.aj" options="-1.9">
<message kind="error" line="3" text="Syntax error on token "new", "method name (not constructor)" expected"/>
<message kind="warning" line="15" text="hasmethod matched on ITD ok"/>
</compile>
</ajc-test>
-
+
<ajc-test title="declare parents : hasfield(..) - 1" dir="hasmember">
<compile files="HasField.aj" options="-XhasMember">
</compile>
</compile>
<run class="HasPrivateFieldInherited"></run>
</ajc-test>
-
+
<!-- Annotation binding tests -->
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 1">
<compile files="CallAnnBinding.aj" options="-1.9"/>
- <run class="CallAnnBinding"/>
+ <run class="CallAnnBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 2">
<compile files="CallAnnBinding2.aj" options="-1.9"/>
- <run class="CallAnnBinding2"/>
+ <run class="CallAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 3">
<compile files="CallAnnBinding3.aj" options="-1.9"/>
- <run class="CallAnnBinding3"/>
+ <run class="CallAnnBinding3"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 4">
<compile files="CallAnnBinding4.aj" options="-1.9"/>
- <run class="CallAnnBinding4"/>
+ <run class="CallAnnBinding4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 5">
<compile files="CallAnnBinding5.aj" options="-1.9"/>
- <run class="CallAnnBinding5"/>
+ <run class="CallAnnBinding5"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 6">
<compile files="CallAnnBinding6.aj" options="-1.9"/>
- <run class="CallAnnBinding6"/>
+ <run class="CallAnnBinding6"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 7">
<compile files="CallAnnBinding7.aj" options="-1.9"/>
- <run class="CallAnnBinding7"/>
+ <run class="CallAnnBinding7"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 1">
<compile files="AtTarget1.aj" options="-1.9"/>
- <run class="AtTarget1"/>
+ <run class="AtTarget1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 2">
<compile files="AtTarget2.aj" options="-1.9"/>
- <run class="AtTarget2"/>
+ <run class="AtTarget2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 3">
<compile files="AtTarget3.aj" options="-1.9"/>
- <run class="AtTarget3"/>
+ <run class="AtTarget3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 4">
<compile files="AtTarget4.aj" options="-1.9"/>
- <run class="AtTarget4"/>
+ <run class="AtTarget4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/usingPackageNames" vm="1.5" title="@target annotation binding 5">
<compile files="MyAspect.aj,MyAnnotation.java,MyClass.java" options="-1.9"/>
- <run class="test.MyClass"/>
+ <run class="test.MyClass"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 1">
<compile files="AtThis1.aj" options="-1.9"/>
- <run class="AtThis1"/>
+ <run class="AtThis1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 2">
<compile files="AtThis2.aj" options="-1.9"/>
- <run class="AtThis2"/>
+ <run class="AtThis2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 3">
<compile files="AtThis3.aj" options="-1.9"/>
- <run class="AtThis3"/>
+ <run class="AtThis3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 4">
<compile files="AtThis4.aj" options="-1.9"/>
- <run class="AtThis4"/>
+ <run class="AtThis4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 5">
<compile files="AtThis5.aj" options="-1.9"/>
- <run class="AtThis5"/>
+ <run class="AtThis5"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 1">
<compile files="AtArgs1.aj" options="-1.9"/>
- <run class="AtArgs1"/>
+ <run class="AtArgs1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 2">
<compile files="AtArgs2.aj" options="-1.9"/>
- <run class="AtArgs2"/>
+ <run class="AtArgs2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 3">
<compile files="AtArgs3.aj" options="-1.9"/>
- <run class="AtArgs3"/>
+ <run class="AtArgs3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 4">
<compile files="AtArgs4.aj" options="-1.9"/>
- <run class="AtArgs4"/>
+ <run class="AtArgs4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 5">
<compile files="AtArgs5.aj" options="-1.9"/>
- <run class="AtArgs5"/>
+ <run class="AtArgs5"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="execution and @annotation">
<compile files="ExecutionAnnBinding1.aj" options="-1.9"/>
- <run class="ExecutionAnnBinding1"/>
+ <run class="ExecutionAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="set and @annotation">
<compile files="FieldAnnBinding1.aj" options="-1.9"/>
- <run class="FieldAnnBinding1"/>
+ <run class="FieldAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="get and @annotation">
<compile files="FieldAnnBinding2.aj" options="-1.9"/>
- <run class="FieldAnnBinding2"/>
+ <run class="FieldAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="get and @annotation with arrays">
<compile files="FieldAnnBinding3.aj" options="-1.9"/>
- <run class="FieldAnnBinding3"/>
+ <run class="FieldAnnBinding3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="cons call and @annotation">
<compile files="CtorAnnBinding1.aj" options="-1.9"/>
- <run class="CtorAnnBinding1"/>
+ <run class="CtorAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="cons exe and @annotation">
<compile files="CtorAnnBinding2.aj" options="-1.9"/>
- <run class="CtorAnnBinding2"/>
+ <run class="CtorAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="staticinit and @annotation">
<compile files="StaticInitBinding.aj" options="-1.9"/>
- <run class="StaticInitBinding"/>
+ <run class="StaticInitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="preinit and @annotation">
<compile files="PreInitBinding.aj" options="-1.9"/>
- <run class="PreInitBinding"/>
+ <run class="PreInitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="init and @annotation">
<compile files="InitBinding.aj" options="-1.9"/>
- <run class="InitBinding"/>
+ <run class="InitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="adviceexecution and @annotation">
<compile files="AdviceExecBinding.aj" options="-1.9"/>
- <run class="AdviceExecBinding"/>
+ <run class="AdviceExecBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="handler and @annotation">
<compile files="HandlerBinding.aj" options="-1.9"/>
- <run class="HandlerBinding"/>
+ <run class="HandlerBinding"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@withincode() and call(* println(..))">
<compile files="WithinCodeBinding1.aj" options="-1.9"/>
<run class="WithinCodeBinding1"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@within">
<compile files="WithinBinding1.aj" options="-1.9"/>
<run class="WithinBinding1"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@within - multiple types">
<compile files="WithinBinding2.aj" options="-1.9"/>
<run class="WithinBinding2"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="packages and no binding">
<compile files="A.java,B.java,Color.java,X.java" options="-1.9"/>
- <run class="a.b.c.A"/>
+ <run class="a.b.c.A"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="packages and binding">
<compile files="A.java,B.java,Color.java,X2.java" options="-1.9"/>
- <run class="a.b.c.A"/>
+ <run class="a.b.c.A"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" vm="1.5" title="binding with static methods">
<compile files="StaticMethods.java" options="-1.9"/>
- <run class="StaticMethods"/>
+ <run class="StaticMethods"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations" vm="1.5" title="annotation matching on call">
<weave classesFiles="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java"
aspectsFiles="AnnotationAspect02.aj"
<message kind="weave" text="Type 'AnnotatedType' (AnnotatedType.java:4) advised by before advice from 'AnnotationAspect02' (aspects.jar!AnnotationAspect02.class:4(from AnnotationAspect02.aj))"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/annotations" vm="1.5" title="at annotation matching">
<weave classesFiles="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java"
aspectsFiles="AnnotationAspect03.aj"
<message kind="warning" line="8" text="@annotation matched here"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/within_code" vm="1.5" title="annotations and within(code)">
<weave classesFiles="TestingAnnotations.java"
aspectsFiles="WithinAndWithinCodeTests.java"
<message kind="warning" line="43" text="@within match on inheritable annotation"/>
<message kind="warning" line="32" text="@withincode match"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/within" vm="1.5" title="annotations and within">
<weave classesFiles="PlainWithin.java"
aspectsFiles="PlainWithinTests.java"
<message kind="warning" line="21" text="positive within match on annotation"/>
<message kind="warning" line="25" text="negative within match on annotation"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="must have runtime retention">
<compile options="-1.9" files="NotRuntimeRetention.aj">
<message kind="error" line="20" text="Annotation type MySourceAnnotation does not have runtime retention"/>
<message kind="error" line="22" text="Annotation type MyAnnotation does not have runtime retention"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="inheritable or not">
<compile options="-1.9" files="TestingAnnotations.java,ThisOrTargetTests.aj">
</compile>
<run class="TestingAnnotations"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="use of @this/target in deow">
<compile options="-1.9" files="TestingAnnotations.java,DeclareEoW.java">
<message kind="error" line="3" text="this() pointcut designator cannot be used in declare statement"/>
<message kind="error" line="5" text="target() pointcut designator cannot be used in declare statement"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/args" vm="1.5" title="@args tests">
<compile options="-1.9" files="TestingArgsAnnotations.java,AtArgsAspect.java">
</compile>
<run class="TestingArgsAnnotations"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/args" vm="1.5" title="use of @args in deow">
<compile options="-1.9" files="TestingArgsAnnotations.java,DeclareEoW.java">
<message kind="error" line="3" text="args() pointcut designator cannot be used in declare statement"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations" vm="1.5" title="compiling an annotation">
<compile options="-1.9" files="SimpleAnnotation.java">
</compile>
<message kind="warning" line="21" text="positive within match on annotation"/>
<message kind="warning" line="25" text="negative within match on annotation"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/attarget" vm="1.5" title="losing annotations...">
<compile options="-1.9" files="Program.java,AtTargetAspect.java">
<message kind="error" line="8" text="can't make inter-type method declarations"/>
<message kind="error" line="13" text="can't make inter-type field declarations"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="no declare parents on annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect04.aj"
<message kind="error" line="10" text="can't use declare parents to make 'java.lang.annotation.Annotation' the parent of type"/>
<message kind="error" line="4" text="can't use declare parents to make annotation type SimpleAnnotation implement an interface"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="declare parents wildcards matching annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect05.aj"
<message kind="warning" line="4" text="annotation type SimpleAnnotation2 matches a declare parents type pattern but is being ignored"/>
<message kind="warning" line="4" text="annotation type SimpleAnnotation matches a declare parents type pattern but is being ignored"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="annotated any pattern">
<compile files="A.java,B.java,C.java,Color.java,X3.java"
options="-1.9">
</compile>
<run class="g.h.i.C"/>
<run class="a.b.c.A"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="annotation not imported">
<compile files="A.java,B.java,C.java,Color.java,X4.java"
options="-1.9">
<message kind="warning" line="6" text="no match for this type name: Color"/>
</compile>
<run class="a.b.c.A"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds">
<compile files="AtItd2.aj" options="-1.9"/>
<run class="AtItd2"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds - values">
<compile files="AtItd3.aj" options="-1.9"/>
<run class="AtItd3"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds - multiple complex annotations">
<compile files="AtItd4.aj" options="-1.9"/>
<run class="AtItd4"/>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/annotations/itds" vm="1.5" title="nasty annotation and itds test">
<compile files="AnnotationsAndITDs.aj" options="-1.9">
<!-- first two are ITCs, second two are ITCs annotated via declare @ctor, third is default ctor -->
- <message kind="warning" line="17" text="execution(@SomeAnnotation ...new(..)"/>
- <message kind="warning" line="20" text="execution(@SomeAnnotation ...new(..)"/>
- <message kind="warning" line="45" text="execution(@SomeAnnotation ...new(..)"/>
+ <message kind="warning" line="17" text="execution(@SomeAnnotation ...new(..)"/>
+ <message kind="warning" line="20" text="execution(@SomeAnnotation ...new(..)"/>
+ <message kind="warning" line="45" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="46" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="180" text="execution(@SomeAnnotation ...new(..)"/>
<!-- first four are fields annotated via declare, last two are directly annotated ITDs -->
- <message kind="warning" line="59" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="60" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="71" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="76" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="77" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="59" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="60" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="71" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="76" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="77" text="set(@SomeAnnotation...)"/>
<!-- annotations added via declare -->
- <message kind="warning" line="175" text="si(@SomeAnnotation...)"/>
- <message kind="warning" line="180" text="si(@SomeAnnotation...)"/>
-
- <message kind="warning" line="25" text="execution(@SomeAnnotation ...)"/>
- <message kind="warning" line="28" text="execution(@SomeAnnotation ...)"/>
- <message kind="warning" line="52" text="execution(@SomeAnnotation ...)"/>
- <message kind="warning" line="53" text="execution(@SomeAnnotation ...)"/>
- <!--message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
- <message kind="warning" line="71" text="set(@SomeAnnotation...)"/-->
+ <message kind="warning" line="175" text="si(@SomeAnnotation...)"/>
+ <message kind="warning" line="180" text="si(@SomeAnnotation...)"/>
+
+ <message kind="warning" line="25" text="execution(@SomeAnnotation ...)"/>
+ <message kind="warning" line="28" text="execution(@SomeAnnotation ...)"/>
+ <message kind="warning" line="52" text="execution(@SomeAnnotation ...)"/>
+ <message kind="warning" line="53" text="execution(@SomeAnnotation ...)"/>
+ <!--message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
+ <message kind="warning" line="71" text="set(@SomeAnnotation...)"/-->
</compile>
<run class="AnnotationsAndITDs">
<stderr>
<line text="@method ITDMe2 (AnnotationsAndITDs.aj:53)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:76)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:77)"/>
-
+
<!--
<line text="method bar has 1 params, first param annotation is @ParamAnnotation"/>
-->
<message kind="error" line="6" text="Syntax error on token ":", "one of type, method, field, constructor" expected"/>
</compile>
</ajc-test>
-
+
<!-- ======================================================================================= -->
<!-- Autoboxing tests -->
<!-- ======================================================================================= -->
<line text="method_takes_Integer=20000"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="integer boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectInteger.aj"
<line text="method_takes_int=40000"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/autoboxing" vm="1.5" title="char boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectChar.aj"
options="-1.9,-showWeaveInfo">
<line text="method_takes_char=4"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/autoboxing" vm="1.5" title="double boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectDouble.aj"
options="-1.9,-showWeaveInfo">
<line text="method_takes_double=400.0"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="float boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectFloat.aj"
<line text="method_takes_float=400.0"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="short boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectShort.aj"
<line text="method_takes_short=400"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="long boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectLong.aj"
<line text="method_takes_long=4000000"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="boolean boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectBoolean.aj"
<line text="method_takes_boolean=false"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="byte boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectByte.aj"
<line text="method_takes_byte=52"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="boxing in after returning">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectAfterReturning.aj"
<line text="Returning Object=10"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<!-- ======================================================================================= -->
<!-- Covariance tests -->
<message kind="error" line="6" text="can't make inter-type field declarations on enum types"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/enums" vm="1.5" title="declare parents and enums">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect03.aj" options="-1.9">
<message kind="error" line="5" text="can't use declare parents to make enum type SimpleEnum implement an interface"/>
<message kind="error" line="8" text="can't use declare parents to alter supertype of enum type SimpleEnum"/>
- <message kind="error" line="11" text="can't use declare parents to make 'java.lang.Enum' the parent of type EnumAspect03$D"/>
+ <message kind="error" line="11" text="can't use declare parents to make 'java.lang.Enum' the parent of type EnumAspect03$D"/>
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- pertypewithin tests -->
<!-- ======================================================================================= -->
-
+
<ajc-test dir="java5/pertypewithin" title="basic ptw test">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java" options="-Xlint:ignore"/>
<run class="p.A">
<line text="callcount = 2"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw hasAspect">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java" options="-Xlint:ignore"/>
<line text="callcount = 3"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/pertypewithin" title="ptw aspectOf">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java" options="-Xlint:ignore"/>
<run class="p.C"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw multi-aspects">
<compile files="P.java,Q.java,R.java"/>
<line text="R reporting 3"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw binary">
<weave classesFiles="G.java" aspectsFiles="H.java"/>
<line text="advice running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/pertypewithin" title="ptw binary aspect">
<compile files="H.java" outjar="aspects.jar">
<message kind="warning" line="1" text="no match for this type name: G"/>
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:27) advised by before advice from 'VarargsAspect06' (VarargsAspect06.aj:3)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/suppressedWarnings" vm="1.5" title="suppressing non-matching advice warnings">
<compile files="Suppression1.aj" options="-1.9,-showWeaveInfo">
<message kind="warning" line="13"/>
<message kind="warning" line="21"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/suppressedWarnings" vm="1.5" title="suppressing non-matching advice warnings when multiple source files involved">
<compile files="A.java,A1.aj,A2.aj,A3.aj" options="-1.9,-showWeaveInfo">
<message kind="warning" line="4" file="A1.aj"/>
<message kind="warning" line="11" file="A3.aj"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="XLint warning for advice not applied with cflow(execution)" pr="93345">
<compile options="-Xlint,-1.9" files="PR93345.aj" >
<message kind="warning" line="9" text="advice defined in AnAspect has not been applied [Xlint:adviceDidNotMatch]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="NPE in reflect implementation" pr="94167">
<compile files="PR94167.java"/>
<run class="reflect.PR94167"/>
<compile files="AnnotatingAspects.aj" options="-1.9">
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotating aspects chapter, ex 2">
<compile files="SuppressAj.aj" options="-1.9">
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotation pattern matching">
<compile files="AnnotationPatternMatching.aj,org/xyz/OrgXYZAnnotation.java" options="-1.9">
<message kind="warning" line="25" text="@Immutable"/>
<message kind="warning" line="29" text="@Foo @Goo"/>
<message kind="warning" line="29" text="@(Foo || Goo)"/>
<message kind="warning" line="31" text="@(Foo || Goo)"/>
- <message kind="warning" line="33" text="@(org.xyz..*)"/>
+ <message kind="warning" line="33" text="@(org.xyz..*)"/>
</compile>
</ajc-test>
<message kind="warning" line="8" text="@(Immutable || NonPersistent) org.xyz..*"/>
<message kind="warning" line="8" text="@Immutable @NonPersistent org.xyz..*"/>
<message kind="warning" line="6" text="@(@Inherited *) org.xyz..*"/>
- <message kind="warning" line="8" text="@(@Inherited *) org.xyz..*"/>
+ <message kind="warning" line="8" text="@(@Inherited *) org.xyz..*"/>
</compile>
</ajc-test>
<message kind="warning" line="13" text="(@SensitiveData *) org.xyz..*.*"/>
<message kind="warning" line="50" text="@Foo (@Goo *) (@Hoo *).*"/>
<message kind="warning" line="38" text="@Persisted @Classified * *"/>
-
+
<message kind="warning" line="44" text="@Oneway * *(..)"/>
<message kind="warning" line="18" text="@Transaction * (@Persisted org.xyz..*).*(..)"/>
<message kind="warning" line="52" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="53" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="54" text="* *.*(@Immutable *,..)"/>
-
+
<message kind="warning" line="62" text="within(@Secure *)"/>
<message kind="warning" line="63" text="within(@Secure *)"/>
<message kind="warning" line="66" text="staticinitialization(@Persisted *)"/>
<message kind="warning" line="28" text="execution(public (@Immutable *) org.xyz..*.*(..))"/>
<message kind="warning" line="26" text="set(@Cachable * *)"/>
<message kind="warning" line="80" text="handler(!@Catastrophic *)"/>
-
+
</compile>
</ajc-test>
<message kind="error" line="18" text="Annotation type Goo does not have runtime retention"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: @inherited">
<compile files="AnnotationInheritance.aj" options="-1.9">
<message kind="warning" line="16" text="annotatedMethodCall()"/>
<!-- <message kind="warning" line="17" text="annotatedMethodCall()"/> -->
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: deow-ann">
<compile files="DeclaresWithAnnotations.aj,org/xyz/model/Model.java" options="-1.9">
<message kind="warning" line="27" text="Expensive operation called from within performance critical section"/>
<message kind="error" line="26" text="Untrusted code should not call the model classes directly"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: decp-ann">
<compile files="DecpAnnotations.aj" options="-1.9">
</compile>
<line text="Test BusinessBankAccount is secured: PASS"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: dec precedence">
<compile files="PrecedenceAnnotations.aj" options="-1.9">
<line text="P1"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: dec annotation">
<compile files="DeclareAnnotation.aj,org/xyz/model/Model.java" options="-1.9">
<message kind="warning" line="51" text="@Secured"/>
</compile>
<run class="DeclareAnnotation"/>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/covariance/ajdk" title="ajdk: covariance">
<compile files="AJDKExamples.aj" options="-1.9">
<message kind="warning" line="43" text="call(* whoAreYou())"/>
<message kind="warning" line="44" text="call(B B.whoAreYou())"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/varargs/ajdk" title="ajdk: varargs">
<compile files="AJDKExamples.aj,org/xyz/Foo.java,org/xyz/Goo.java,org/xyz/Hoo.java" options="-1.9">
<message kind="warning" line="8" text="call vararg match"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type 2">
<compile files="DecaType2.java" options="-1.9,-Xlint:ignore" >
</compile>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - with matching pointcut">
<compile files="DecaType3.java" options="-1.9"/>
<run class="DecaType3">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - binary weaving">
<weave classesFiles="BaseTypes.java"
aspectsFiles="DecaTypeBin1.aj,Colored.java"
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - complex annotation - source weaving">
<compile files="BaseTypes.java,DecaTypeBin2.aj" options="-1.9"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - two annotations hit one type - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin3.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
- </run>
+ </run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 1) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions1.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 2) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - annotating an already annotated type - binary weaving">
<weave classesFiles="AnnotatedType.java" aspectsFiles="DecaTypeBin4.aj" options="-1.9,-Xlint:ignore"/>
<run class="AnnotatedType">
</stderr>
</run>
</ajc-test>
-
-
+
+
<!--ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin5.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
</stderr>
</run>
</ajc-test-->
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets - source weaving">
<compile files="BaseTypes.java,DecaTypeBin5.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
<message kind="error" line="21" text="The annotation @ColorPkg is disallowed for this location"/>
</compile>
</ajc-test>
-
+
<!--ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets (using type patterns) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin6.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="15" text="A is not a valid target for annotation ColorM"/>
- <message kind="warning" line="16" text="A is not a valid target for annotation ColorC"/>
+ <message kind="warning" line="16" text="A is not a valid target for annotation ColorC"/>
<message kind="warning" line="17" text="A is not a valid target for annotation ColorL"/>
<message kind="warning" line="17" text="B is not a valid target for annotation ColorL"/>
<message kind="warning" line="17" text="C is not a valid target for annotation ColorL"/>
</stderr>
</run>
</ajc-test-->
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets (using type patterns) - source weaving">
<compile files="BaseTypes.java,DecaTypeBin6.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
- <message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
+ <message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
<message kind="error" line="17" text="The annotation @ColorL is disallowed for this location"/>
<message kind="error" line="18" text="The annotation @ColorF is disallowed for this location"/>
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/annotations/declare" title="declare @type - complex decp decAtType interactions - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin7.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
</weave>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - complex decp decAtType interactions - source weaving">
<compile files="BaseTypes.java,DecaTypeBin7.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types - source weaving">
<compile files="BaseTypes.java,DecaTypeBin8.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
- <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
+ <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin8.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
- <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
+ <message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
</weave>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types (uses pattern) - source weaving">
<compile files="BaseTypes.java,DecaTypeBin9.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="8" text="A is not a valid target for annotation ColorA"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types (uses pattern) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin9.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="8" text="A is not a valid target for annotation ColorA"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare" title="declare @type - covering enum and class element values - source weaving">
<compile files="EnumAndClassValues.aj,FunkyAnnotations.java" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="FunkyAnnotations">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare" title="declare @type - covering enum and class element values - binary weaving">
<weave aspectsFiles="EnumAndClassValues.aj" classesFiles="FunkyAnnotations.java" options="-1.9 -Xdev:Pinpoint" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="FunkyAnnotations">
</stderr>
</run>
</ajc-test>
-
-
+
+
<!-- ======================================================================================= -->
<!-- declare annotation (@field) -->
<!-- ======================================================================================= -->
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtField1.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two the same on one - source weaving">
<compile files="Base.java,Colored.java,TwoOnOneField.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="int Base.publicIntField - already has an annotation of type Colored"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two the same on one - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="TwoOnOneField.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="int Base.publicIntField - already has an annotation of type Colored"/>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two different on one - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,TwoOnOneField2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
</compile>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two different on one - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="TwoOnOneField2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - wrong target - source weaving">
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="warning" line="16" text="does not match because annotation @TypeColoring has @Target{ElementType.TYPE} [Xlint:unmatchedTargetKind]"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - source weaving">
<compile files="Base.java,Colored.java,RightTarget.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="RightTarget.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,RecursiveFields.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="RecursiveFields.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application (other order) - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,RecursiveFields2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application (other order) - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="RecursiveFields2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<!-- incorrect target type for annotation on field -->
-
+
<!-- incorrect target type for annotation on method -->
<!-- two annotations on one method -->
<!-- two of the same annotation on one method - error -->
<!-- two of the same on one using pattern spec - lint -->
-
+
<!-- need some incorrect signatures in the declare @statements - e.g. declare @constructor: public Base(int): XXX; will blow things up as it uses Base rather than new -->
<!-- incorrect target type for annotation on ctor -->
<!-- two annotations on one ctor -->
<!-- two of the same annotation on one ctor - error -->
<!-- two of the same on one using pattern spec - lint -->
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method - simple source weaving">
<compile files="Base.java,Colored.java,AtMethod1.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtMethod1.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @constructor - simple source weaving">
<compile files="Base.java,Colored.java,AtCtor1.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @constructor - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtCtor1.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<!-- These tests verify both @method and @ctor behavior - they are so similar it is OK to have them together... -->
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - wrong target - source weaving">
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="error" line="11" text="The annotation @TypeColoring is disallowed for this location"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - right target - source weaving">
<compile files="Base.java,Colored.java,RightTarget.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - right target - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="RightTarget.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<!-- check @method/@ctor/@field recursively applying, can only happen if a pattern for one of them includes an annotation -->
-
-
+
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two the same on one - source weaving">
<compile files="Base.java,Colored.java,TwoOnOneMember.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="void Base.m1() - already has an annotation of type Colored"/>
<message kind="warning" text="void Base.<init>(int) - already has an annotation of type Colored"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two the same on one - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="TwoOnOneMember.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="void Base.m1() - already has an annotation of type Colored"/>
<message kind="warning" text="void Base.<init>(int) - already has an annotation of type Colored"/>
</weave>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two different on one - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,TwoOnOneMember2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
</compile>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two different on one - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="TwoOnOneMember2.aj" options="-1.9" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<line text="m3() running"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/annotations/declare" title="declare all annotations on one class - source weaving">
<compile files="DeathByAnnotations.aj" options="-1.9,-emacssym" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="p.q.DeathByAnnotations"/>
</ajc-test>
-
+
<!-- ======================================================================================= -->
<!-- annotation binding with ITDs -->
<!-- ======================================================================================= -->
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated">
<compile files="BindingWithAnnotatedItds2.aj" options="-1.9"/>
<run class="BindingWithAnnotatedItds2">
</stderr>
</run>
</ajc-test>
-
+
<!-- ======================================================================================= -->
- <!-- declare annotation targetting ITDs -->
+ <!-- declare annotation targetting ITDs -->
<!-- ======================================================================================= -->
-
-
+
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd method is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds1.aj" options="-1.9,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds1">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds2.aj" options="-1.9,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds2">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated multiple times via declare">
<compile files="BindingWithDeclaredAnnotationItds3.aj" options="-1.9,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds3">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd ctor is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds4.aj" options="-1.9,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds4">
</ajc-test>
<!-- ============================================================== -->
-
+
<ajc-test dir="options/aspectpath" title="dirs on aspectpath">
<compile files="MyAspect.aj" options="-d out"/>
<compile files="MyClass.java" options="-aspectpath out">
<compile files="ITDReturningParameterizedType.aj" options="-1.9"/>
<run class="ITDReturningParameterizedType"/>
</ajc-test>
-
+
<ajc-test dir="java5/annotations/binding/bugs" title="AtArgs causes a VerifyError: Unable to pop operand off an empty stack" vm="1.5">
<compile files="Test3.java" options="-1.9"/>
<run class="Test3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs/pr91267" title="NPE using generic methods in aspects 1" vm="1.5">
<compile files="TestBug1.aj" options="-1.9"/>
<run class="TestBug1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs/pr91267" title="NPE using generic methods in aspects 2" vm="1.5">
<compile files="TestBug2.aj" options="-1.9"/>
<run class="TestBug2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Generics problem with Set" vm="1.5">
<compile files="PR91053.aj" options="-1.9"/>
<run class="PR91053"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Compilation error on generic member introduction" vm="1.5">
<compile files="PR87282.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Parameterized types on introduced fields not correctly recognized" vm="1.5">
<compile files="PR88606.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="enum called Enum, annotation called Annotation, etc">
<compile files="PR90827.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Internal compiler error">
<compile files="PR86832.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Exploding compile time with if() statements in pointcut">
<compile files="PR94086.aj" options="-1.9"/>
</ajc-test>
-
+
<!-- generic abstract aspects... -->
-
+
<ajc-test dir="java5/generics/genericaspects" title="static pointcut parameterization suite">
<compile files="GenericAspectPointcuts.aj" options="-1.9">
<message kind="warning" line="62" text="kinded-returning-ok"/>
<message kind="warning" line="53" text="handler-ok"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="dynamic pointcut parameterization suite">
<compile files="GenericAspectRuntimePointcuts.aj" options="-1.9">
</compile>
<line text="@annotation-ok-sub @MyAnnotation(value=my-value) execution(X Y.bar())"/>
<line text="@annotation-ok @MyAnnotation(value=my-value) execution(X Y.bar())"/>
<line text="this-ok a Y execution(X Y.bar())"/>
- <line text="@this-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
+ <line text="@this-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
<line text="@target-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
<line text="@within-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
<line text="@withincode-ok @MyAnnotation(value=my-value) get(X Y.x)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="reference to pointcut in generic class">
<compile files="PointcutsInGenericClasses.aj" options="-1.9">
<message kind="warning" line="16" text="a match"/>
<compile files="DecPGenericTest.aj" options="-1.9">
<message kind="warning" line="16" text="success"/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/genericaspects" title="declare precedence parameterized">
<compile files="DecPrecedenceGenericTest.aj" options="-1.9 -Xdev:Pinpoint">
</compile>
<line text="A2"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="declare annotation parameterized">
<compile files="DecAnnGenericTest.aj" options="-1.9">
<message kind="warning" line="22" text="@constructor ok"/>
<message kind="warning" line="24" text="@method ok"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="multi-level generic abstract aspects">
<compile files="MultiLevelGenericTest.aj" options="-1.9">
<message kind="warning" line="23" text="middle match"/>
<message kind="warning" line="23" text="top match"/>
</compile>
- </ajc-test>
+ </ajc-test>
<!-- generic bugs -->
-
+
<ajc-test dir="java5/generics/bugs" title="ITD method with generic arg">
<compile files="PR97763.aj" options="-1.9"/>
<run class="PR97763">
<ajc-test dir="bugs150" title="NPE at ClassScope.java:660 when compiling generic class">
<compile files="PR95993.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/bugs" title="Problems resolving type name inside generic class">
<compile files="PR95992.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="100227" title="inner class with generic enclosing class">
<compile files="pr100227.aj" options="-1.9"/>
<run class="pr100227">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" pr="100260" title="methods inherited from a generic parent">
<compile files="pr100260.aj" options="-1.9"/>
<run class="pr100260"/>
</ajc-test>
-
+
<!-- end of generic bugs -->
<!-- generic aspects -->
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 1">
<compile files="GenericAspect1.aj" options="-1.9">
<message kind="error" line="2" text="only abstract aspects can have type parameters"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 2">
<compile files="GenericAspect2.aj" options="-1.9">
<message kind="error" line="9" text="a generic super-aspect must be fully parameterized in an extends clause"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 3">
<compile files="GenericAspect3.aj" options="-1.9"/>
<run class="GenericAspect3">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 4">
<compile files="ParentChildRelationship.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspect with declare warning using type vars">
<compile files="DeclareWarningInGenericAspect.aj" options="-1.9">
<message kind="warning" line="16" text="this method takes a T!"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/genericaspects" title="generic aspect declare parents">
<compile files="DeclareParentsWithTypeVars.aj" options="-1.9">
</compile>
</stderr>
</run>
</ajc-test>
-
+
<!-- ajdk example -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 5 (ajdk)">
<compile files="Blob.java,BlobContainment.aj,ParentChildRelationship.aj" options="-1.9"/>
<run class="BlobContainment"/>
</ajc-test>
-
+
<!-- same as above but all types in one file -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 6 (ajdk)">
<compile files="TheBigOne.java" options="-1.9"/>
<run class="TheBigOne"/>
</ajc-test>
-
+
<!-- end of generic aspects -->
-
+
<!-- generic ITDs -->
-
+
<ajc-test dir="java5/generics/itds" title="ITDs on generic type">
<compile files="Parse5.java" options="-1.9">
<message kind="error" line="9"/>
<message kind="error" line="15"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="itd of non static member">
<compile files="A.java" options="-1.9"/>
<run class="A">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="itd of static member">
<compile files="B.java" options="-1.9"/>
<run class="B">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="itd using type parameter">
<compile files="C.java" options="-1.9"/>
<run class="C">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="static generic method itd">
<compile files="StaticGenericMethodITD.aj" options="-1.9"/>
<run class="StaticGenericMethodITD">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 1">
<compile files="GenericCtorITD1.aj" options="-1.9"/>
<run class="GenericCtorITD1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 2">
<compile files="GenericCtorITD2.aj" options="-1.9"/>
<run class="GenericCtorITD2"/>
<compile files="GenericCtorITD3.aj" options="-1.9"/>
<run class="GenericCtorITD3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 1">
<compile files="ParameterizedMethodITD1.aj" options="-1.9"/>
<run class="ParameterizedMethodITD1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 2">
<compile files="ParameterizedMethodITD2.aj" options="-1.9">
<message kind="error" line="9" text="The method simple(List<? extends Number>) in the type Base is not applicable for the arguments (List<A>)"/>
<compile files="GenericMethodITD1.aj" options="-1.9"/>
<run class="GenericMethodITD1"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 2">
<compile files="GenericMethodITD2.aj" options="-1.9">
<message kind="error" line="9" text="Bound mismatch: The generic method simple(List<? extends E>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <E extends Number>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 3">
<compile files="GenericMethodITD3.aj" options="-1.9"/>
<run class="GenericMethodITD3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 4">
<compile files="GenericMethodITD4.aj" options="-1.9"/>
<run class="GenericMethodITD4"/>
<message kind="error" line="10" text="The method simple(List<E>, List<E>) in the type Base is not applicable for the arguments (List<A>, List<B>)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 6">
<compile files="GenericMethodITD6.aj" options="-1.9"/>
<run class="GenericMethodITD6"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 7">
<compile files="GenericMethodITD7.aj" options="-1.9"/>
<run class="GenericMethodITD7"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 8">
<compile files="GenericMethodITD8.aj" options="-1.9">
<message kind="error" line="10" text="The method simple(List<E>, List<? extends E>) in the type Base is not applicable for the arguments (List<Number>, List<String>)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 9">
<compile files="GenericMethodITD9.aj" options="-1.9"/>
<run class="GenericMethodITD9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 10">
<compile files="GenericMethodITD10.aj" options="-1.9">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Comparable<? super R>>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 11">
<compile files="GenericMethodITD11.aj" options="-1.9"/>
<run class="GenericMethodITD11"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 12">
<compile files="GenericMethodITD12.aj" options="-1.9">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Foo<? extends R>>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 13">
<compile files="GenericMethodITD13.aj" options="-1.9"/>
<run class="GenericMethodITD13"/>
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Foo<? super R>>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic method itd - 15">
<compile files="GenericMethodITD15.aj" options="-1.9"/>
<run class="GenericMethodITD15"/>
</ajc-test>
-
+
<!-- visibility -->
-
+
<ajc-test dir="java5/generics/itds/visibility" title="public itds">
<compile files="PublicITDs.aj" options="-1.9"/>
<run class="PublicITDs"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/visibility" title="private itds">
<compile files="PrivateITDs.aj" options="-1.9"/>
<run class="PrivateITDs"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/visibility" title="package itds">
<compile files="PackageITDs.aj" options="-1.9"/>
<run class="PackageITDs"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/visibility" title="public itds with errors">
<compile files="PublicITDsErrors.aj" options="-1.9">
<message kind="error" line="13" text="The method publicMethod2(List<R>, List<R>) in the type Base is not applicable for the arguments (List<Double>, List<Float>)"/>
<message kind="error" line="15" text="The constructor Base(List<Double>, Map<Integer,String>) is undefined"/>
</compile>
</ajc-test>
-
+
<!-- targetting different types -->
-
+
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting interface">
<compile files="TargettingInterface.aj" options="-1.9"/>
<run class="TargettingInterface"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting aspect">
<compile files="TargettingAspect.aj" options="-1.9"/>
<run class="TargettingAspect"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting class">
<compile files="TargettingClass.aj" options="-1.9"/>
<run class="TargettingClass"/>
</ajc-test>
-
+
<!-- sharing type variables between the ITD and the generic type -->
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 1">
<compile files="FieldA.aj" options="-1.9"/>
- <run class="FieldA"/>
+ <run class="FieldA"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 2">
<compile files="FieldB.aj" options="-1.9">
<message kind="error" line="16" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 3">
<compile files="FieldC.aj" options="-1.9"/>
- <run class="FieldC"/>
+ <run class="FieldC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 4">
<compile files="FieldD.aj" options="-1.9"/>
- <run class="FieldD"/>
+ <run class="FieldD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 5">
<compile files="FieldE.aj" options="-1.9"/>
- <run class="FieldE"/>
+ <run class="FieldE"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 6">
<compile files="FieldF.aj" options="-1.9"/>
- <run class="FieldF"/>
+ <run class="FieldF"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 7">
<compile files="FieldG.aj" options="-1.9"/>
- <run class="FieldG"/>
+ <run class="FieldG"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 8">
<compile files="FieldH.aj" options="-1.9"/>
- <run class="FieldH"/>
+ <run class="FieldH"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 9">
<message kind="error" line="7" text="Type mismatch: cannot convert from List<String> to List<Integer>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -10">
<compile files="FieldJ.aj" options="-1.9"/>
<run class="FieldJ"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -11">
<compile files="FieldK.aj" options="-1.9"/>
<run class="FieldK"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -12">
<compile files="FieldL.aj" options="-1.9"/>
<run class="FieldL"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -13">
<compile files="FieldM.aj" options="-1.9"/>
<run class="FieldM"/>
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -16">
<compile files="FieldP.aj" options="-1.9">
<message kind="error" line="10" text="static intertype field declarations cannot refer to type variables from the target generic type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -17">
<compile files="FieldQ.aj" options="-1.9"/>
<run class="FieldQ"/>
</ajc-test>
-
+
<!-- Now intertype declared methods on generic types that use the target types type vars -->
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A1">
<compile files="MethodA.aj" options="-1.9"/>
- <run class="MethodA"/>
+ <run class="MethodA"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A2">
<compile files="MethodA2.aj" options="-1.9"/>
- <run class="MethodA2"/>
+ <run class="MethodA2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A3">
<compile files="MethodA3.aj" options="-1.9"/>
- <run class="MethodA3"/>
+ <run class="MethodA3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A4">
<compile files="MethodA4.aj" options="-1.9"/>
- <run class="MethodA4"/>
+ <run class="MethodA4"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - B1">
<compile files="MethodB.aj" options="-1.9">
<message kind="error" line="16" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - C1">
<compile files="MethodC.aj" options="-1.9"/>
- <run class="MethodC"/>
+ <run class="MethodC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - D1">
<compile files="MethodD.aj" options="-1.9"/>
- <run class="MethodD"/>
+ <run class="MethodD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - E1">
<compile files="MethodE.aj" options="-1.9"/>
- <run class="MethodE"/>
+ <run class="MethodE"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - F1">
<compile files="MethodF.aj" options="-1.9"/>
- <run class="MethodF"/>
+ <run class="MethodF"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - G1">
<compile files="MethodG.aj" options="-1.9"/>
- <run class="MethodG"/>
+ <run class="MethodG"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - H1">
<compile files="MethodH.aj" options="-1.9"/>
- <run class="MethodH"/>
+ <run class="MethodH"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - I1">
<compile files="MethodI.aj" options="-1.9">
<message kind="error" line="6" text="Type mismatch: cannot convert from List<Integer> to List<String>"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - I2">
<compile files="MethodI2.aj" options="-1.9">
<message kind="error" line="7" text="The method m(List<Integer>) in the type Base<Integer> is not applicable for the arguments (List<String>)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - J1">
<compile files="MethodJ.aj" options="-1.9"/>
- <run class="MethodJ"/>
+ <run class="MethodJ"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - K1">
<compile files="MethodK.aj" options="-1.9"/>
- <run class="MethodK"/>
+ <run class="MethodK"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - L1">
<compile files="MethodL.aj" options="-1.9"/>
- <run class="MethodL"/>
+ <run class="MethodL"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - M1">
<compile files="MethodM.aj" options="-1.9"/>
- <run class="MethodM"/>
+ <run class="MethodM"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - M2">
<compile files="MethodM2.aj" options="-1.9"/>
- <run class="MethodM2"/>
+ <run class="MethodM2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - N1">
<compile files="MethodN.aj" options="-1.9">
<message kind="error" line="11" text="Type parameters can not be specified in the ITD target type - the target type I is not generic."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - O1">
<compile files="MethodO.aj" options="-1.9">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
- </compile>
+ </compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - O2">
<compile files="MethodO2.aj" options="-1.9">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
- </compile>
- </ajc-test>
-
+ </compile>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - P1">
<compile files="MethodP.aj" options="-1.9"/>
- <run class="MethodP"/>
+ <run class="MethodP"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - Q1">
<compile files="MethodQ.aj" options="-1.9"/>
- <run class="MethodQ"/>
- </ajc-test>
-
+ <run class="MethodQ"/>
+ </ajc-test>
+
<!-- Now intertype declared constructors on generic types that use the target types type vars -->
-
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - A1">
<compile files="CtorA.aj" options="-1.9"/>
- <run class="CtorA"/>
- </ajc-test>
-
+ <run class="CtorA"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - B1">
<compile files="CtorB.aj" options="-1.9">
<message kind="error" line="15" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - C1">
<compile files="CtorC.aj" options="-1.9"/>
- <run class="CtorC"/>
- </ajc-test>
-
+ <run class="CtorC"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - D1">
<compile files="CtorD.aj" options="-1.9"/>
- <run class="CtorD"/>
- </ajc-test>
-
+ <run class="CtorD"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - E1">
<compile files="CtorE.aj" options="-1.9"/>
- <run class="CtorE"/>
- </ajc-test>
-
+ <run class="CtorE"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - F1">
<compile files="CtorF.aj" options="-1.9"/>
- <run class="CtorF"/>
- </ajc-test>
-
+ <run class="CtorF"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - G1">
<compile files="CtorG.aj" options="-1.9"/>
- <run class="CtorG"/>
- </ajc-test>
-
+ <run class="CtorG"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - H1">
<compile files="CtorH.aj" options="-1.9"/>
- <run class="CtorH"/>
- </ajc-test>
-
+ <run class="CtorH"/>
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - I1">
<compile files="CtorI.aj" options="-1.9"/>
- <run class="CtorI"/>
- </ajc-test>
-
- <!-- putting it all together, fields/methods/ctors and decps -->
-
+ <run class="CtorI"/>
+ </ajc-test>
+
+ <!-- putting it all together, fields/methods/ctors and decps -->
+
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - A">
<compile files="GenericAspectA.aj" options="-1.9"/>
<run class="GenericAspectA"/>
<message kind="weave" text="Extending interface set for type 'Bottom' (GenericAspectZ.aj) to include 'ParentChildRelationship$ChildHasParent<Top>' (GenericAspectZ.aj)"/>
<message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped field from 'ParentChildRelationship' (GenericAspectZ.aj:'ParentChildRelationship$ParentHasChildren ParentChildRelationship$ChildHasParent.parent')"/>
<message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped method from 'ParentChildRelationship' (GenericAspectZ.aj:'ParentChildRelationship$ParentHasChildren ParentChildRelationship$ChildHasParent.getParent()')"/>
- <message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped method from 'ParentChildRelationship' (GenericAspectZ.aj:'void ParentChildRelationship$ChildHasParent.setParent(P)')"/-->
+ <message kind="weave" text="Type 'Bottom' (GenericAspectZ.aj) has intertyped method from 'ParentChildRelationship' (GenericAspectZ.aj:'void ParentChildRelationship$ChildHasParent.setParent(P)')"/-->
</compile>
<run class="GenericAspectZ"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - two">
<compile files="TwoA.java" outjar="twoa.jar" options="-1.9"/>
<compile files="TwoB.java" outjar="twob.jar" options="-1.9"/>
- <compile files="TwoX.java" inpath="twoa.jar;twob.jar" options="-1.9"/>
+ <compile files="TwoX.java" inpath="twoa.jar,twob.jar" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/sharing" title="method itd sharing type variable with generic type">
<compile files="Simple.aj" options="-1.9"/>
<run class="Simple"/>
<compile files="Simple2.aj" options="-1.9"/>
<run class="Simple2"/>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/generics/itds" title="non static generic method itd - 2">
<compile files="NonstaticGenericCtorITD2.aj" options="-1.9"/>
<run class="NonstaticGenericCtorITD2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="reusing type variable letters">
<compile files="ReusingLetters.aj" options="-1.9"/>
<run class="ReusingLetters"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="multiple generic itds in one file">
<compile files="BizarroSignatures.aj" options="-1.9"/>
<run class="BizarroSignatures"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="generic intertype field declaration, sharing type variable">
<compile files="FieldITDOnGenericType.aj" options="-1.9"/>
<run class="FieldITDOnGenericType">
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 1">
<compile files="Parse1.java" options="-1.9"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 4">
<compile files="Parse4.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 5">
<compile files="Parse5.java" options="-1.9">
<message kind="error" line="11" text="Incorrect number of type parameters supplied. The generic type Parse5<T,S> has 2 type parameters, not 3."/>
<message kind="error" line="15" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 6">
<compile files="Parse6.java" options="-1.9"/>
</ajc-test>
-
+
<!-- end of generic ITDs -->
-
+
<!-- generic decps -->
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - simple">
<compile files="Basic.aj" options="-1.9"/>
<run class="Basic"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #1">
<compile files="Basic2.aj" options="-1.9">
<message kind="error" line="11" text="Cannot declare parent I<java.lang.Integer> onto type Basic2 since it already has I<java.lang.String> in its hierarchy"/>
<message kind="error" line="10" text="Cannot declare parent I<java.lang.Integer> onto type Basic2b since it already has I in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #3">
<compile files="Basic2c.aj" options="-1.9">
<message kind="error" line="10" text="Cannot declare parent I onto type Basic2c since it already has I<java.lang.Double> in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #4">
<compile files="Basic2d.aj" options="-1.9"/>
</ajc-test>
<message kind="error" line="2" text="Cannot declare parent I<java.lang.Integer> onto type Base1 since it already has I<java.lang.String> in its hierarchy"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #2">
<weave classesFiles="Base2.java" aspectsFiles="Asp2.aj" options="-1.9,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I<java.lang.Integer> onto type Base2 since it already has I in its hierarchy"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #3">
<weave classesFiles="Base3.java" aspectsFiles="Asp3.aj" options="-1.9,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I onto type Base3 since it already has I<java.lang.Double> in its hierarchy"/>
</weave>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #4">
<weave classesFiles="Base4.java" aspectsFiles="Asp4.aj" options="-1.9,-showWeaveInfo"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - incorrect number of type parameters">
<compile files="Basic3.aj" options="-1.9">
<message kind="error" line="10" text="Type pattern does not match because the wrong number of type parameters are specified: Type I requires 1 parameter(s)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - specifying bounds">
<compile files="Basic4.aj" options="-1.9"/>
<run class="Basic4"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - specifying bounds but breaking them">
<compile files="Basic5.aj" options="-1.9">
<message kind="error" line="7" text="Type java.lang.String does not meet the specification for type parameter 1 (T extends java.lang.Number) in generic type I"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/decp" title="generic decp - with parameterized on the target">
<compile files="Basic6.aj" options="-1.9,-showWeaveInfo">
<message kind="weave" text="Extending interface set for type 'Basic6' (Basic6.aj) to include 'K<java.lang.Integer>' (Basic6.aj)"/>
</ajc-test>
<!-- end of generic decps -->
-
+
<!-- generics/itds and binary weaving -->
-
+
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - A">
<compile files="TestA_generictype.java" outjar="code.jar" options="-1.9"/>
<compile files="TestA_aspect.aj,TestA_class.java" inpath="code.jar" options="-1.9"/>
<compile files="TestB_aspect1.aj,TestB_aspect2.aj,TestB_class.java" inpath="code.jar" options="-1.9"/>
<run class="TestB_class"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 1">
<compile files="BaseClass.java" outjar="code.jar" options="-1.9"/>
<compile files="A1.aj" inpath="code.jar" options="-1.9"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 2">
<compile files="BaseClass.java,A1.aj" outjar="code.jar" options="-1.9,-showWeaveInfo">
<message kind="weave" text="Type 'BaseClass' (BaseClass.java) has intertyped field from 'A1' (A1.aj:'java.util.List<java.lang.String> BaseClass.list1')"/>
</ajc-test>
<!-- end of generics/itds and binary weaving -->
-
+
<!-- generics/itds and bridge methods -->
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 1">
<compile files="Sub1.java,Super1.java,X1.aj" options="-1.9"/>
<run class="X1"/>
<compile files="X2.aj,Util.java" inpath="code.jar" options ="-1.9"/>
<run class="X2"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 3">
<compile files="Sub3.java,Super3.java,X3.aj" options="-1.9"/>
<run class="X3"/>
<compile files="X3.aj" inpath="code.jar" options ="-1.9"/>
<run class="X3"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 4">
<compile files="Sub4.java,Super4.java,X4.aj" options="-1.9"/>
<run class="X4"/>
<compile files="X4.aj" inpath="code.jar" options ="-1.9"/>
<run class="X4"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - one">
<compile files="OneA.java" outjar="onea.jar" options="-1.9"/>
<compile files="OneB.java" outjar="oneb.jar" options="-1.9"/>
- <compile files="OneX.java" inpath="onea.jar;oneb.jar" options="-1.9"/>
+ <compile files="OneX.java" inpath="onea.jar,oneb.jar" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - two">
<compile files="TwoA.java" outjar="twoa.jar" options="-1.9"/>
<compile files="TwoB.java" outjar="twob.jar" options="-1.9"/>
- <compile files="TwoX.java" inpath="twoa.jar;twob.jar" options="-1.9"/>
+ <compile files="TwoX.java" inpath="twoa.jar,twob.jar" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/binaryBridging" title="binary bridge methods - three">
<compile files="ThreeA.java" outjar="threea.jar" options="-1.9"/>
<compile files="ThreeB.java" outjar="threeb.jar" options="-1.9"/>
- <compile files="ThreeX.java" inpath="threea.jar;threeb.jar" options="-1.9"/>
+ <compile files="ThreeX.java" inpath="threea.jar,threeb.jar" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="abstract intertype methods and covariant returns">
<compile files="pr91381.aj" options="-1.9"/>
<run class="pr91381"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" title="abstract intertype methods and covariant returns - error">
<compile files="pr91381_2.aj">
<message kind="error" line="15" text="The return type is incompatible with A.foo()"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridging with covariance 1 - normal">
<compile files="Bridging1.aj,Util.java" options="-1.9"/>
<line text="D D.method1()"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridging with covariance 1 - itd">
<compile files="BridgingITD1.aj,Util.java" options="-1.9"/>
<run class="BridgingITD1">
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 1 - normal">
<compile files="Bridging2.aj,Util.java" options="-1.9"/>
- <run class="Bridging2">
+ <run class="Bridging2">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.next() [BridgeMethod]"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 1 - itd">
<compile files="BridgingITD2.aj,Util.java" options="-1.9"/>
- <run class="BridgingITD2">
+ <run class="BridgingITD2">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.next() [BridgeMethod]"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 2 - normal">
<compile files="Bridging3.aj,Util.java" options="-1.9"/>
- <run class="Bridging3">
+ <run class="Bridging3">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.id(java.lang.Object) [BridgeMethod]"/>
</stderr>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 2 - itd">
<compile files="BridgingITD3.aj,Util.java" options="-1.9"/>
- <run class="BridgingITD3">
+ <run class="BridgingITD3">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.id(java.lang.Object) [BridgeMethod]"/>
<run class="pr91381"/>
</ajc-test>
<!-- end of generics/itds and bridge methods -->
-
-
+
+
<!-- generics and pointcuts -->
<ajc-test dir="java5/generics/pointcuts" title="handler pcd and generics / type vars">
<message kind="error" line="27" text="Syntax error on token"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="annotation pcds with parameterized types">
<compile files="ParameterizedTypesInAtPCDs.aj" options="-1.9">
<message kind="error" line="3" text="Syntax error on token"/>
<message kind="error" line="13" text="Syntax error on token"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="annotation patterns with parameterized types">
<compile files="ParameterizedTypesInAnnotationPatterns.aj" options="-1.9">
<message kind="error" line="5" text="is not an annotation type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized types">
<compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithParameterizedTypes.aj" options="-1.9">
<message kind="error" line="4" text="no static initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="14" text="no static initialization join points for parameterized types, use raw type instead"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized type matching">
<compile files="GenericInterface.java,GenericImplementingClass.java,ConcreteImplementingClass.java,ConcreteExtendingClass.java,StaticInitializationWithParameterizedTypesMatching.aj" options="-1.9">
<message kind="warning" line="1" text="clinit(GenericInterface<Double>+)"/>
<message kind="warning" line="19" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericInterface requires 1 parameter(s)"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization with generic types">
<compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithGenericTypes.aj" options="-1.9">
<message kind="warning" line="1" text="one generic param, correct bounds"/>
<message kind="warning" line="24" text="Type N extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericImplementingClass"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization with generic types - advanced">
<compile files="StaticInitializationWithGenericTypesAdvanced.aj" options="-1.9">
<message kind="warning" line="76" text="simple match"/>
<message kind="warning" line="27" text="Type Z extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="within pcd with various parameterizations and generic types - errors">
<compile files="WithinPointcutMatching.aj" options="-1.9">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="9" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with raw declaring type pattern">
<compile files="InitializationPointcutMatchingDeclaringType.aj" options="-1.9">
<message kind="warning" line="10" text="generic/param init matching ok"/>
<message kind="warning" line="10" text="generic/param preinit matching ok"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with parameterized parameter types">
<compile files="InitializationPointcutMatchingParamTypes.aj" options="-1.9">
<message kind="warning" line="51" text="the really wild show"/>
<message kind="warning" line="52" text="the really wild show"/>
</compile>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="withincode with various parameterizations and generic types - errors">
<compile files="WithincodePointcutMatching.aj" options="-1.9">
<message kind="warning" line="80" text="parameterized match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw type matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawTypeMatching.aj" options="-1.9">
<message kind="warning" line="4" text="execution(* GenericInterface.*(..))"/>
<message kind="warning" line="5" text="execution(* GenericInterface.*(..))"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw signature matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawSignatureMatching.aj" options="-1.9">
<message kind="warning" line="4" text="execution(* GenericInterface.asInt(Number))"/>
<message kind="warning" line="5" text="execution<T>(* GenericInterface<T extends Number>.asInt(T))"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="call with various parameterizations and generic types - errors">
<compile files="CallPointcutMatchingErrorCases.aj" options="-1.9">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="6" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="call with various parameterizations and generic types - matching">
<compile files="CallPointcutMatchingParamAndReturnTypes.aj" options="-1.9">
<message kind="warning" line="7" text="raw param type matching in call ok"/>
<message kind="warning" line="87" text="parameterized match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="call with bridge methods">
<compile files="CallWithBridgeMethods.aj" options="-1.9">
<!-- see testcode
-->
</compile>
</ajc-test>
-
-
+
+
<ajc-test dir="java5/generics/pointcuts" title="args with raw type and generic / parameterized sigs">
<compile files="RawArgs.aj" options="-1.9">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="args with generic wildcard super">
<compile files="ArgsListOfSomethingSuper.aj" options="-1.9">
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="generic method matching">
<compile files="GenericMethods.aj" options="-1.9">
<message kind="warning" line="19" text="static generic method match"/>
<message kind="warning" line="34" text="static generic method match"/>
- <message kind="warning" line="24" text="instance generic method match"/>
- <message kind="warning" line="39" text="instance generic method match"/>
+ <message kind="warning" line="24" text="instance generic method match"/>
+ <message kind="warning" line="39" text="instance generic method match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="java5/generics/pointcuts" title="generic wildcards in signature matching">
<compile files="GenericWildcardsInSignatureMatching.aj" options="-1.9">
<message kind="warning" line="5" text="set of a list"/>
<message kind="warning" line="15" text="super wild match"/>
</compile>
</ajc-test>
-
+
<!-- end of generics and pointcuts tests -->
<ajc-test dir="java5/generics/afterAdvice" title="after throwing with parameterized throw type">
<line text="returning(List<String> matched at call(List MustBeString.listit(List))"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test dir="java5/generics/afterAdvice" title="after returning with parameterized type and wildcards">
<compile files="AfterReturningParameterizedWithWildcards.aj" options="-1.9">
<message kind="warning" line="10" text="unchecked match of List<Double> with List when argument is an instance of List"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard">
<compile files="AfterReturningListOfSomething.aj" options="-1.9">
<!-- warning is unchecked match of List<?> from line 28 onto line 15. -->
<line text="super wild type matches execution(HashSet AfterReturningListOfSomething.setOf(HashSet))"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard extends">
<compile files="AfterReturningListOfSomethingExtends.aj" options="-1.9">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard super">
<compile files="AfterReturningListOfSomethingSuper.aj" options="-1.9">
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test title="ajdk notebook: erasure matching examples" dir="java5/generics/ajdk">
<compile files="ErasureMatching.aj" options="-1.9">
<message kind="warning" line="18" text="static generic method match"/>
<message kind="warning" line="28" text="field in generic type match"/>
</compile>
</ajc-test>
-
+
<ajc-test title="ajdk notebook: simple parameterized type matching examples" dir="java5/generics/ajdk">
<compile files="SimpleParameterizedTypeExamples.aj" options="-1.9">
- <message kind="warning" line="34" text="get myStrings 1"/>
- <message kind="warning" line="34" text="get myStrings 2"/>
- <message kind="warning" line="38" text="get myStrings 1"/>
- <message kind="warning" line="38" text="get myStrings 2"/>
- <message kind="warning" line="35" text="get myFloats 1"/>
- <message kind="warning" line="35" text="get myFloats 2"/>
- <message kind="warning" line="35" text="get myFloats 3"/>
- <message kind="warning" line="34" text="getter 1"/>
- <message kind="warning" line="35" text="getter 1"/>
- <message kind="warning" line="34" text="getter 2"/>
- <message kind="warning" line="35" text="getter 2"/>
- <message kind="warning" line="34" text="getter 3"/>
- <message kind="warning" line="35" text="getter 4"/>
- <message kind="warning" line="25" text="call 1"/>
- <message kind="warning" line="25" text="call 2"/>
- </compile>
- </ajc-test>
-
+ <message kind="warning" line="34" text="get myStrings 1"/>
+ <message kind="warning" line="34" text="get myStrings 2"/>
+ <message kind="warning" line="38" text="get myStrings 1"/>
+ <message kind="warning" line="38" text="get myStrings 2"/>
+ <message kind="warning" line="35" text="get myFloats 1"/>
+ <message kind="warning" line="35" text="get myFloats 2"/>
+ <message kind="warning" line="35" text="get myFloats 3"/>
+ <message kind="warning" line="34" text="getter 1"/>
+ <message kind="warning" line="35" text="getter 1"/>
+ <message kind="warning" line="34" text="getter 2"/>
+ <message kind="warning" line="35" text="getter 2"/>
+ <message kind="warning" line="34" text="getter 3"/>
+ <message kind="warning" line="35" text="getter 4"/>
+ <message kind="warning" line="25" text="call 1"/>
+ <message kind="warning" line="25" text="call 2"/>
+ </compile>
+ </ajc-test>
+
<ajc-test title="ajdk notebook: mixed parameterized types and generic methods" dir="java5/generics/ajdk">
<compile files="MixedParameterizedAndTypeVariables.aj" options="-1.9">
<message kind="warning" line="13" text="erasure match"/>
<message kind="warning" line="11" text="match"/>
</compile>
</ajc-test>
-
+
<ajc-test title="ajdk notebook: args examples" dir="java5/generics/ajdk">
<compile files="ArgsExamples.aj" options="-1.9">
<message kind="warning" line="15" text="unchecked match of List<Double> with List<? extends Number> when argument is an instance of List at join point method-execution(void C.goo(List<? extends Number>)) [Xlint:uncheckedArgument]"/>
<line text="args List of Double"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test title="ajdk notebook: after returning examples" dir="java5/generics/ajdk">
<compile files="AfterReturningExamples.aj" options="-1.9">
<message kind="warning" line="20" text="unchecked match of List<Double> with List<? extends Number>"/>
<line text="a1 5.0"/>
<line text="a1 10.0"/>
<line text="a3 5.0"/>
- <line text="a3 10.0"/>
+ <line text="a3 10.0"/>
</stdout>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<ajc-test title="ajdk notebook: args and wildcards examples" dir="java5/generics/ajdk">
<compile files="WildcardArgsExamples.aj" options="-1.9">
<message kind="warning" line="6" text="unchecked match of List<? extends Number> with List"/>
<line text="advice match 2 at call(void C.goo4(List))"/>
</stdout>
</run>
- </ajc-test>
+ </ajc-test>
<ajc-test title="ajdk notebook: pointcut in generic class example" dir="java5/generics/ajdk">
<compile files="PointcutInGenericClassExample.aj" options="-1.9">
<message kind="warning" line="23" text="parameterized with C"/>
<message kind="warning" line="29" text="parameterized with D"/>
</compile>
- </ajc-test>
+ </ajc-test>
<!-- ============================================================== -->
<!-- End of generics tests -->
<!-- ============================================================== -->
-
+
<ajc-test dir="bugs150/pr98901" title="public method with declare @method">
<compile files="Case01.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B01">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Compiler error due to a wrong exception check in try blocks">
<compile files="pr82989.aj" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public method on the aspect that declares @method on it">
<compile files="Case02.aj" options="-1.9 -Xlint:error"/>
<run class="B02">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated method">
<compile files="Case03.aj" options="-1.9 -Xlint:error"/>
<run class="B03">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD method with declare @method">
<compile files="Case04.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B04">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself method with declare @method">
<compile files="Case06.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B06">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself method">
<compile files="Case07.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B07">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public method on an Interface with declare @method">
<compile files="Case08.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B08">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD method onto an Interface with declare @method">
<compile files="Case10.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B10">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated ITD method onto an Interface">
<compile files="Case11.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B11">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract method with declare @method">
<compile files="Case12.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B12">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract annotated method">
<compile files="Case14.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B14">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method with declare @method">
<compile files="Case15.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B15">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract ITD-on-itself method with declare @method">
<compile files="Case17.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B17">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD-on-itself method">
<compile files="Case18.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B18">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract method on an Interface with declare @method">
<compile files="Case19.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B19">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method onto an Interface with declare @method">
<compile files="Case21.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B21">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD method onto an Interface">
<compile files="Case22.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B22">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public field with declare @field">
<compile files="Case23.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B23">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public field on the aspect that declares @field on it">
<compile files="Case24.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated field">
<compile files="Case25.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B25">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD field with declare @field">
<compile files="Case26.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B26">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself field with declare @field">
<compile files="Case28.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B28">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself field">
<compile files="Case29.aj" options="-1.9 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B29">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="Unable to build shadows">
<compile files="pr109728.java" options="-1.9"/>
</ajc-test>
<message kind="error" line="10" text="Cannot declare parent B<java.lang.Number> onto type C since it already has A<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 2">
<compile files="Case2.java" options="-1.9">
<message kind="error" line="8" text="Cannot declare parent A<java.lang.Number> onto type C since it already has A<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 3">
<compile files="Case3.java" options="-1.9"/>
</ajc-test>
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 4">
<compile files="Case4.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110927" title="cant create signature attribute">
<compile files="Case1.java" options="-1.9"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs150/pr72834" title="broken dispatch">
<compile files="Trouble.java">
<message kind="error" line="9" text="The method getName() is undefined for the type A"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr73856" title="missing accessor">
<compile files="MissingAccessor.java"/>
<run class="MissingAccessor"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr90143" title="cant call super methods">
<compile files="A.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="cunning declare parents">
<compile files="pr92311.aj"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="ITD varargs problem">
<compile files="pr110906.aj" options="-1.9"/>
<run class="pr110906">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="generic itds and abstract method error">
<compile files="pr102357.aj"/>
<run class="pr102357"/>
</ajc-test>
-
+
<ajc-test dir="bugs150" title="unexpected error unboundFormalInPC">
<compile files="pr112027.aj"/>
</ajc-test>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr112602" title="ClassCastException with generic wildcard">
<compile files="GenericInterface.java,Implementation.java" options="-1.9,-emacssym"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 1">
<compile files="Case1.java" options="-1.9">
<message kind="warning" line="27" text="no match for this type name: Branch [Xlint:invalidAbsoluteTypeName]"/>
<message kind="error" line="39" text="List cannot be resolved to a type"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 2">
<compile files="Case2.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 3">
<compile files="Case3.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 4">
<compile files="Case4.java" options="-1.9"/>
</ajc-test>
<message kind="error" line="15" text="can't override java.util.List<java.lang.String> I.foo() with java.util.List<java.lang.Integer> A.foo() return types don't match"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 6">
<compile files="Case6.java" options="-1.9">
<message kind="error" line="8" text="N cannot be resolved to a type"/>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 7">
<compile files="Case7.java" options="-1.9"/>
<run class="Case7">
- <stderr>
+ <stderr>
<line text="in=hello out=hello"/>
<line text="in=35 out=35"/>
<line text="in=[] out=[]"/>
</stderr>
</run>
- </ajc-test>
-
+ </ajc-test>
+
<!-- generic ITDs -->
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design A">
<compile files="DesignA.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design B">
<compile files="DesignB.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design C">
<compile files="DesignC.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design D">
<compile files="DesignD.java" options="-1.9"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design E">
<compile files="DesignE.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design F">
<compile files="DesignF.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="java5/generics/itds/design" title="generic itds - design G">
<compile files="DesignG.java" options="-1.9"/>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr116626" title="NPE in WeavingAdaptor">
<compile files="com/foo/bar/Test.java, TestAspect.aj" options="-1.9"/>
<run class="com.foo.bar.Test" ltw="aop.xml"
>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java, accounts/recovery/Recovery.aj"/>
<run class="services.account.StockQuoteServiceTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call not self">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java, accounts/recovery/RecoveryNotSelf.aj"/>
<run class="services.account.StockQuoteServiceTest">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call using -XterminateAfterCompilation and LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj" options="-XterminateAfterCompilation"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call using LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call not self using LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/RecoveryNotSelf.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call self and not self using LTW">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj, accounts/recovery/RecoveryNotSelf.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr119657" title="IllegalAccessError with around advice on interface method call using LTW and -XnoInline">
<compile files="services/account/StockQuoteServiceTest.java, services/accountdata/StockAccount.java, services/stockquote/StockQuoteService.java, services/stockquote/StockQuoteServiceImpl.java, services/account/AccountReport.java"/>
<compile files="accounts/recovery/Recovery.aj"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs150/pr121385" title="override protected pointcut in aop.xml concrete aspect">
<compile files="Hello.java"/>
<compile files="World.aj, ConcreteWorld.aj"/>
</run>
</ajc-test>
-</suite>
\ No newline at end of file
+</suite>
<message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect2.Aspect2' (Aspect2.java:11)"/>
<message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect1.Aspect1' (Aspect1.java:12)"/>
</compile>
- <!--
+ <!--
>In Aspect1
>In Aspect2
>In Aspect3
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - reweaving">
<compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
<message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - 1">
<compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
<message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - 2">
<compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
<message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/543657" vm="1.8" title="mood indicator 4">
<compile files="MoodIndicator4.java" options="-1.8" outjar="one.jar">
</compile>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/543657" vm="1.8" title="overweaving atdecp">
<compile files="Basic3b.java" options="-showWeaveInfo -1.8" outjar="ow1.jar">
<message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'X$I' (Basic3b.java)"/>
<message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'X' (Basic3b.java:33)"/>
</compile>
<compile files="Y.java" inpath="ow1.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
-
+
<message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Y$IIimpl' (Y.java:10) advised by before advice from 'Y' (Y.java:17)"/>
<message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Y$IIimpl' (Y.java:10) advised by before advice from 'X' (ow1.jar!X.class(from Basic3b.java))"/>
<message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'Y' (Y.java:17)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 3">
<compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
<message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 4">
<compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
<message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
<message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
<message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
</compile>
- <compile inpath="ow3.jar" aspectpath="ow4.jar:ow2.jar" options="-1.8">
+ <compile inpath="ow3.jar" aspectpath="ow4.jar,ow2.jar" options="-1.8">
<message kind="error" text="the type Application was previously subject to overweaving and after that can only be woven again in overweaving mode"/>
<message kind="error" text="the type MyAspect was previously subject to overweaving and after that can only be woven again in overweaving mode"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs193/542682" vm="1.5" title="wildcard enum match in itd">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect04.aj" options="-1.5">
<message kind="warning" line="8" text="enum type SimpleEnum2 matches a declare parents type pattern but is being ignored"/>
<message kind="warning" line="8" text="enum type SimpleEnum matches a declare parents type pattern but is being ignored"/>
</compile>
</ajc-test>
-
+
<ajc-test dir="bugs193/542682" title="declare mixin a">
<compile files="CaseA.java" options="-1.8">
<message kind="warning" line="1" text="enum type Color matches a declare parents type pattern but is being ignored"/>
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/isAbstractType" title="is abstract">
<compile files="Code.java" options="-1.8"/>
<run class="Code">
</stdout>
</run>
</ajc-test>
-
+
<ajc-test dir="bugs193/isAbstractType" title="is abstract - 2">
<compile files="Code2.java" options="-1.8"/>
<run class="Code2">
</run>
</ajc-test>
-<!--
+<!--
<ajc-test dir="bugs191/var" title="var 3">
<compile files="Code3.java" options="-10">
</compile>
<!--apt_service_description.jar contains only SPI description file - META-INF/services/javax.annotation.processing.Processor-->
<compile options="-1.8 -s generated -showWeaveInfo" files="Some.java"
- classpath="annotation_processor.jar;apt_service_description.jar" outjar="code.jar">
+ classpath="annotation_processor.jar,apt_service_description.jar" outjar="code.jar">
<message kind="weave"
text="Type 'test.Some' (Some.java) has intertyped field from 'test.SomeEventsAspect' (SomeEventsAspect.aj:'test.SomeEventsAspect$SomeOnMethod1Event test.Some.OnMethod1Event')"/>
<message kind="weave"