aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr82989.aj
blob: fabab94e4b979b1ef293dfe4469129803f10eb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class A {

  public A(){}

  private void m1() throws E {
    throw new E(); 
  }
}

privileged aspect B {

  void A.m2() {
    try {
      m1(); 
    } catch(E e) { // accessor generated for m1() should be defined to throw E
    	System.err.println(e);
    }
  }
}

class E extends Exception{
  public E(){}
}