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.

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