--- /dev/null
+package test;
+
+public aspect TestAspect {
+ Object around() : within(TestClass) {
+ return proceed();
+ }
+
+ after() : within(TestClass) {
+ }
+}
+
+class TestClass {
+ public void test() {
+ try {
+ new String();
+ } catch (Exception ex) {
+ }
+ }
+}
+
public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// AspectJ1.6.2
+ public void testWarningsForLimitations_pr210114() { runTest("warnings for limitations"); }
public void testPTW_pr244830() { runTest("ptw initFailureCause"); }
public void testGenericItdsOverrides_pr222648() { runTest("generic itds - overrides"); }
public void testGenericItdsOverrides_pr222648_2() { runTest("generic itds - overrides - 2"); }
<!-- AspectJ v1.6.2 Tests -->
<suite>
+ <ajc-test dir="bugs162/pr210114" title="warnings for limitations">
+ <compile files="TestAspect.java" options="-1.5">
+ <message kind="warning" text="Only before advice is supported on handler join points (compiler limitation)"/>
+ <message kind="warning" text="around on initialization not supported (compiler limitation)"/>
+ <message kind="warning" text="around on pre-initialization not supported (compiler limitation)"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs162/pr244830" title="ptw initFailureCause">
<compile files="PTW.java" options="-1.5"/>
<run class="PTW"/>