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.

pr82989.aj 311B

1234567891011121314151617181920212223
  1. class A {
  2. public A(){}
  3. private void m1() throws E {
  4. throw new E();
  5. }
  6. }
  7. privileged aspect B {
  8. void A.m2() {
  9. try {
  10. m1();
  11. } catch(E e) { // accessor generated for m1() should be defined to throw E
  12. System.err.println(e);
  13. }
  14. }
  15. }
  16. class E extends Exception{
  17. public E(){}
  18. }