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

IntertypeDifferentThrows.java 265B

1234567891011121314151617
  1. class A {
  2. public A(){}
  3. public void m() throws Exception{}
  4. }
  5. class B extends A {
  6. public B(){}
  7. public void some_code(){
  8. m();
  9. }
  10. }
  11. // B.m() introduced here does not throw 'Exception' so class B above
  12. // should compile OK!
  13. aspect C {
  14. public void B.m(){}
  15. }