aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr82989.aj
blob: 76ce57827907ea8bfe36842cdd219d62805f5ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
    }
  }
}

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