Community
Participate
Working Groups
Build Identifier: 20100617-1415 Given a class X as follow: public class X { private Y y1; private Y y2; public Y getY1() { return y1; } public void setY1(Y y) { this.y1 = y; } public Y getY2() { return y2; } public void setY2(Y y) { this.y2 = y; } } And Y : public class Y { } The following aspect has an unexpected compilation error: [error] The field 'private Y X.a*' does not exist // Compilation Error public aspect OneToOneAspect { declare @field : private Y X.a* : @MyAnnotation; } When the OneToOneAspect is modified as follow (the pattern matches), the compilation works fine. // No compilation error public aspect OneToOneAspect { declare @field : private Y X.y* : @MyAnnotation; } Reproducible: Always Steps to Reproduce: See above.
Nothing special for the annotation: public @interface MyAnnotation { }