選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }