Browse Source

per clause tests for stack map generation

tags/V1_7_0RC1
aclement 12 years ago
parent
commit
5034251ef9

+ 16
- 0
tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java View File

*/ */
public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {


public void testPerThis() {
runTest("perthis");
}

public void testPerTarget() {
runTest("pertarget");
}

public void testPerCflow() {
runTest("percflow");
}

public void testPerTypeWithin() {
runTest("pertypewithin");
}

// not specifying -1.7 // not specifying -1.7
public void testDiamond1() { public void testDiamond1() {
runTest("diamond 1"); runTest("diamond 1");

+ 20
- 0
tests/src/org/aspectj/systemtest/ajc170/ajc170.xml View File



<suite> <suite>


<ajc-test dir="bugs170/language" title="perthis">
<compile files="PerThis.java" options="-1.7">
</compile>
</ajc-test>
<ajc-test dir="bugs170/language" title="pertarget">
<compile files="PerTarget.java" options="-1.7">
</compile>
</ajc-test>
<ajc-test dir="bugs170/language" title="percflow">
<compile files="PerCflow.java" options="-1.7">
</compile>
</ajc-test>
<ajc-test dir="bugs170/language" title="pertypewithin">
<compile files="PerTypeWithin.java" options="-1.7">
</compile>
</ajc-test>
<ajc-test dir="bugs170/language" title="diamond 1"> <ajc-test dir="bugs170/language" title="diamond 1">
<compile files="Diamond.java" options="-1.5"> <compile files="Diamond.java" options="-1.5">
<message kind="error" line="11" text="'&lt;&gt;' operator is not allowed for source level below 1.7"/> <message kind="error" line="11" text="'&lt;&gt;' operator is not allowed for source level below 1.7"/>

Loading…
Cancel
Save