summaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
blob: fc8b354701dea405235cfac2115c58c692be3d67 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<!-- AspectJ v1.5.3 Tests -->
<suite>

    <ajc-test dir="bugs153/pr148381" title="argNames and javac">
      <!--compile files="C.java" options="-1.5"/>
      <compile files="A.java" options="-1.5"/-->
      <compile files="Main.java,Monitor.java" options="-1.5" outjar="foo.jar" classpath="code.jar"/>
      <run class="test.Main" classpath="$sandbox/code.jar" ltw="aop.xml">
        <stderr>
          <line text="goo"/>
 	    </stderr>
      </run>
    </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"/>
      <compile files="Sample.java" options="-Xlint:ignore" aspectpath="apath.jar" outjar="run.jar">
        <message kind="warning" line="8" text="Unable to determine match at this join point because the type 'Event' cannot be found"/>
      </compile>
      <run class="Sample" classpath="run.jar,apath.jar">
        <stderr>
          <line text="method running"/>
        </stderr>
      </run>
    </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"/>
      <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 dir="bugs153/pr145693" title="cpathNoTypeCflowField">
      <compile files="Event.java" outjar="cpath.jar"/>
      <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
      <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 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 dir="bugs153/pr149071" title="visibility problem">
      <compile files="AspectItd.java"/>
    </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"/-->
      <compile files="C.java" options="-showWeaveInfo" aspectpath="apath.jar">
        <message kind="weave" text="foo"/>
      </compile>
      <run class="C">
        <stderr>
          <line text="foo"/>
        </stderr>
      </run>
    </ajc-test>    
    
	<ajc-test dir="bugs153/pr149322" title="can't find type on interface call">
		<compile files="Interface.java"/>
        <compile
			files="Missing.java"
        	outjar="missing.jar"
        />
      	<compile files="TestFail.java" classpath="missing.jar"/>
<!--
      	<compile files="Aspect.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
	        <message kind="weave" text="void Interface.method()"/>
	        <message kind="weave" text="void Missing.method()"/>
		</compile>	        
      	<compile files="Aspect.aj" options="-showWeaveInfo -inpath .">
	        <message kind="weave" text="void Interface.method()"/>
	        <message kind="weave" text="void Missing.method()"/>
		</compile>	        
-->      	
      	<compile files="Aspect.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
	        <message kind="weave" text="void Interface.method()"/>
	        <message kind="warning" text="Missing"/>
		</compile>	        
<!--      	
      	<run class="TestFail" ltw="aop.xml"/>
-->      	
    </ajc-test>    
    
</suite>