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.

Bug.java 324B

1234567891011121314151617181920212223
  1. interface Result {}
  2. interface Factory {
  3. Result getInstance();
  4. }
  5. class B {}
  6. class D implements Factory {}
  7. aspect EnsureBImplementsResult {
  8. // bug: this should work
  9. declare parents: B implements Result;
  10. // bug: get error here wrt invalid return type
  11. public B D.getInstance() {
  12. return new B();
  13. }
  14. }