123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <ajc-test dir="bugs196/558995" title="early resolution of supporting interfaces">
- <compile options="-14" files="foo/SynchronizedStaticAspect.aj foo/SynchronizedAspect.aj foo/SynchronizedTest.java foo/Synchronized.java"/>
- </ajc-test>
-
- <!-- switch now in Java14 and doesn't need -enable-preview flag -->
- <ajc-test dir="features193" vm="14" title="switch 1">
- <compile files="Switch1.java" options="-14">
- </compile>
- <run class="Switch1">
- <stdout>
- <line text="0" />
- <line text="1" />
- <line text="2" />
- <line text="3" />
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features193" vm="14" title="switch 2">
- <compile files="Switch2.java" options="-source 14">
- </compile>
- <run class="Switch2" vmargs="">
- <stdout>
- <line text="0" />
- <line text="2" />
- <line text="4" />
- <line text="6" />
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features193" vm="14" title="switch 3">
- <compile files="Switch3.java" options="-source 14">
- </compile>
- <run class="Switch3" vmargs="">
- <stdout>
- <line text="3" />
- <line text="6" />
- <line text="9" />
- <line text="12" />
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs196/java14" vm="14" title="simple record">
- <compile files="Person.java" options="--enable-preview -14" />
- </ajc-test>
-
- <ajc-test dir="bugs196/java14" vm="14" title="using a record">
- <compile files="Person.java UsingPersonRecord.java"
- options="--enable-preview -14" />
- <run class="UsingPersonRecord" vmargs="--enable-preview">
- <stdout>
- <line text="Person[firstName=A, lastName=B, age=99]" />
- <line text="A" />
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs196/java14" vm="14"
- title="instanceof patterns">
- <compile files="Jep305.java" options="--enable-preview -14" />
- <run class="Jep305" vmargs="--enable-preview">
- <stdout>
- <line text="orange" />
- <line text="apple" />
- </stdout>
- </run>
- </ajc-test>
-
-
- <ajc-test dir="bugs196/java14" vm="14"
- title="advising records">
- <compile
- files="TraceRecordComponents.aj Person.java UsingPersonRecord.java"
- options="--enable-preview -14" />
- <run class="UsingPersonRecord" vmargs="--enable-preview">
- <stdout>
- <line text="execution(String Person.toString())" />
- <line text="Person[firstName=A, lastName=B, age=99]" />
- <line text="execution(String Person.firstName())" />
- <line text="A" />
- </stdout>
- </run>
- </ajc-test>
-
-
- <!-- textblock still in preview at 14 level -->
- <ajc-test dir="features195/textblock" vm="14"
- title="textblock 1">
- <compile files="Code.java"
- options="--enable-preview -source 14">
- </compile>
- <run class="Code" vmargs="--enable-preview">
- <stdout>
- <line text="this is a text" />
- <line text="block" />
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features195/textblock" vm="14"
- title="textblock 2">
- <compile files="Code2.java"
- options="--enable-preview -source 14">
- </compile>
- <run class="Code2" vmargs="--enable-preview">
- <stdout>
- <line text="this is a text" />
- <line text="block in advice" />
- </stdout>
- </run>
- </ajc-test>
-
- </suite>
|