123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
-
- <suite>
-
- <!-- https://github.com/eclipse-aspectj/aspectj/issues/68 -->
- <ajc-test dir="bugs198/github_68" vm="11" title="correctly weave code using constant-dynamic">
- <compile files="Application.java MyAspect.aj" options="-11" inpath="condy.jar"/>
- <run class="Application">
- <stdout>
- <line text="execution(CondyCallable())" />
- <line text="execution(CondyCallable())" />
- <line text="execution(Application())" />
- <line text="Sample instance created" />
- </stdout>
- </run>
- </ajc-test>
-
- <!-- https://github.com/eclipse-aspectj/aspectj/issues/105 -->
- <ajc-test dir="bugs198/github_105" vm="8" title="ITD annotation with mandatory parameter via aspectpath">
- <compile files="FooAnnotation.java BarAnnotation.java FooAspect.aj" options="-8" outjar="aspect.jar"/>
- <compile files="Application.java" options="-8" aspectpath="aspect.jar"/>
- </ajc-test>
-
- <!-- Java 17 final, Java 16, 15 preview -->
- <ajc-test dir="features197/java15" vm="17" title="sealed class with legal subclasses">
- <compile files="Person.java Employee.java Manager.java" options="-17" />
- </ajc-test>
-
- <!-- Java 17 final, Java 16, 15 preview -->
- <ajc-test dir="features197/java15" vm="17" title="sealed class with illegal subclass">
- <compile files="Person.java Employee.java Manager.java PersonaNonGrata.java" options="-17">
- <message kind="error" file="PersonaNonGrata.java" text="should be a permitted subtype of Person"/>
- </compile>
- </ajc-test>
-
- <!-- Java 17 final, Java 16, 15 preview -->
- <ajc-test dir="features197/java15" vm="17" title="weave sealed class">
- <compile files="Person.java Employee.java Manager.java TopManager.java PersonAspect.aj" options="-17" />
- <run class="TopManager">
- <stdout>
- <line text="Hello Sir John" />
- <line text="CEO" />
- </stdout>
- </run>
- </ajc-test>
-
- <!-- Java ?? final, Java 17 preview -->
- <ajc-test dir="features198/java17" vm="17" title="switch pattern matching error">
- <compile files="SwitchPatternError.java" options="--enable-preview -17">
- <!-- TODO: Add correct compiler error message, as soon as JDT Core supports it -->
- <message kind="error" file="SwitchPatternError.java" text="This case label is dominated by one of the preceding case labels"/>
- </compile>
- </ajc-test>
-
- <!-- Java ?? final, Java 17 preview -->
- <ajc-test dir="features198/java17" vm="17" title="switch pattern matching java">
- <compile files="SwitchPatternOK.java" options="--enable-preview -17" />
- <run class="SwitchPatternOK" vmargs="--enable-preview">
- <stdout>
- <line text="null" />
- <line text="int 123" />
- <line text="long 999" />
- <line text="double 12.340000" />
- <line text="String foo" />
- <line text="[123, foo, 999, 12.34]" />
- <line text="Non-circle" />
- <line text="Small circle" />
- <line text="Large circle" />
- <line text="Sealed sub-class A" />
- <line text="Sealed sub-class B" />
- <line text="Sealed sub-record C" />
- </stdout>
- </run>
- </ajc-test>
-
- <!-- Java ?? final, Java 17 preview -->
- <ajc-test dir="features198/java17" vm="17" title="switch pattern matching aspect">
- <compile files="SwitchPatternAspect.aj" options="--enable-preview -17" />
- <run class="Application" vmargs="--enable-preview">
- <stdout>
- <line text="null" />
- <line text="int 123" />
- <line text="long 999" />
- <line text="double 12.340000" />
- <line text="String foo" />
- <line text="[123, foo, 999, 12.34]" />
- <line text="Non-circle" />
- <line text="Small circle" />
- <line text="Large circle" />
- <line text="Sealed sub-class A" />
- <line text="Sealed sub-class B" />
- <line text="Sealed sub-record C" />
- </stdout>
- </run>
- </ajc-test>
-
- <!-- Javac/ECJ 9+ compiler option, but belated implementation in AJC 1.9.8 -->
- <ajc-test dir="features198/compiler_release" vm="9" title="compile to older JDK release">
- <compile files="Buffers.java" options="--release 8"/>
- </ajc-test>
-
- </suite>
|