Community
Participate
Working Groups
This is related to #33636 (a very old bug!) and recently encountered in Spring (see http://opensource.atlassian.com/projects/spring/browse/SPR-4114). There is an easy workaround hence marking this as "minor". Consider the following aspect and class: 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) { } } } This produces: Compiler errors for around() for initialization and preinitialization join points Compiler warnings for around() and after() for handler join points Errors and warnings note "compiler limitation". It seems using warnings for both cases may be appropriate and less confusing.
changed to warnings for those limitations. test and fix in.