You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr113073.java 318B

123456789101112131415161718
  1. @interface Annotation{}
  2. aspect B {
  3. declare @method : public * C.anotherMethod(..) : @Annotation; // should be woven
  4. declare @constructor : C.new(String) : @Annotation;
  5. }
  6. class C {
  7. }
  8. aspect D {
  9. public C.new(String s) {
  10. this();
  11. }
  12. public void C.anotherMethod(String s) {
  13. }
  14. public void C.anotherMethod() {
  15. }
  16. }