Community
Participate
Working Groups
There is no entry in the relmap for this program: package TestRequirements; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) @interface AnnotatedMethod {} @Retention(RetentionPolicy.RUNTIME) @interface NewAnnotatedMethod { boolean newValue(); } aspect X { declare @method: !@AnnotatedMethod * TestRequirements.*(..) : @NewAnnotatedMethod(newValue = true); } class TestRequirements { @AnnotatedMethod public void dontMatchMe() {} public void matchMe() {} }
The problem here is that the typename is the same as the package name. Rather unusual! fixed.