aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/ajc1810/ajc1810.xml
blob: 0171f5b55d6da33b95679cb6d75e75ab9f232d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<suite>

	<ajc-test dir="bugs1810/508661" title="various ltw">
		<compile options="-1.8" files="CacheMethodResult.java A_yes.java B_no.java Run.java" outjar="classes.jar"/>
		<compile options="-1.8 -Xlint:ignore" files="CacheMethodResultAspect.java" outjar="aspects.jar"/>
		<run class="Run" ltw="aop.xml">
			<stdout>
				<line text="around: void A_yes.m()"/>
				<line text="A_yes.m()"/>
				<line text="A_yes has interface? CacheMethodResultAspect$ajcMightHaveAspect"/>
				<line text="B_no.m()"/>
				<line text="B_no has interface? no"/>
			</stdout>
		</run>
	</ajc-test>

	<ajc-test dir="bugs1810/500035" title="ataspectj binding">
		<compile options="-1.8" files="Code.java"/>
		<run class="Code">
		<stdout>
		<line text="targetObject = hello"/>
		<line text="regex = l"/>
		<line text="replacement = 7"/>
		<line text="he7lo"/>
		</stdout>
		</run>
	</ajc-test>
	
	<ajc-test dir="bugs1810/500035" title="ataspectj binding 2">
		<compile options="-1.8" files="Code2.java"/>
		<run class="Code2">
		<stdout>
		<line text="targetObject = hello"/>
		<line text="regex = l"/>
		<line text="replacement = 8"/>
		<line text="he8lo"/>
		</stdout>
		</run>
	</ajc-test>
	
	<ajc-test dir="bugs1810/500035" title="ataspectj binding 3 -XnoInline">
		<compile options="-1.8 -XnoInline" files="Code3.java"/>
		<run class="Code3">
		<stdout>
		<line text="first: binding target, just passing everything through: target=Foo(1)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="third: binding this, just passing everything through: this=Foo(0)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
		<line text="Executing run(abc) on Foo(i=4)"/>
		<line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
		<line text="Executing run(abc) on Foo(i=0)"/>
		</stdout>
		</run>
	</ajc-test>
	
	<ajc-test dir="bugs1810/500035" title="ataspectj binding 4">
		<compile options="-1.8" files="Code3.java"/>
		<run class="Code3">
		<stdout>
		<line text="first: binding target, just passing everything through: target=Foo(1)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="third: binding this, just passing everything through: this=Foo(0)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
		<line text="Executing run(abc) on Foo(i=1)"/>
		<line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
		<line text="Executing run(abc) on Foo(i=4)"/>
		<line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
		<line text="Executing run(abc) on Foo(i=0)"/>
		</stdout>
		</run>
	</ajc-test>
	
	<ajc-test dir="bugs1810/501656" title="generics exception">
		<compile options="-1.8 -parameters" files="ApplicationException.java ApplicationExceptionHandler.java"/>
	</ajc-test>

	<ajc-test dir="bugs1810/490315" title="indy">
		<compile options="-1.8" files="FailingAspect.java SomeAnno.java SomeContext.java SomeCriteria.java SomeDTO.java SomeEnum.java SomePiece.java SomePropertyDTO.java SomeService.java SomeServiceImpl.java"/>
	</ajc-test>

	<ajc-test dir="bugs1810/493554" title="pertarget">
		<compile options="-1.8" files="Dep.java FooAspect.aj Cmd.java"/>
		<run class="example.kusedep.Cmd"></run>
	</ajc-test>

	<ajc-test dir="bugs1810/ambig" title="ambiguous message - 18">
		<compile options="-1.8" files="X.java"/>
	</ajc-test>

	<ajc-test dir="bugs1810/ambig" title="ambiguous message - 17">
		<compile options="-1.7" files="X.java"/>
	</ajc-test>

	<ajc-test dir="bugs1810/502807" title="unexpected aioobe">
		<compile options="-1.8" files="TestCollectors.java">
		  <message kind="error" text="The method toList() in the type Collectors is not applicable for the arguments (Inner::getId)"/>
		</compile>
	</ajc-test>
	
</suite>