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.

ExceptionsCP.java 378B

12345678910111213141516171819202122232425
  1. import org.aspectj.testing.Tester;
  2. import java.io.IOException;
  3. public class ExceptionsCP {
  4. public static void main(String[] args) {
  5. C c = new C();
  6. try {
  7. c.foo();
  8. } catch (IOException io) {}
  9. c.bar();
  10. }
  11. }
  12. class Root {
  13. public void bar() {}
  14. }
  15. class C extends Root {
  16. }
  17. aspect A {
  18. public void C.foo() throws IOException { }
  19. }