blob: 5a495ed8ef174e4b3c3f8d4eede19115cb5f978f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package client;
import lib.ConcreteA;
import org.aspectj.lang.*;
public class Client {
public static void main(String[] args) {
C c = new C();
System.out.println(c.value);
ConcreteA.Marker m = c;
System.out.println(m.value);
System.out.println(ConcreteA.getPrivateValue(c));
try {
new Client();
} catch (SoftException se) {
System.out.println("se: " + se);
}
}
public Client() {
foo();
}
private void foo() throws ConcreteA.MyException {
throw new ConcreteA.MyException();
}
}
class C implements ConcreteA.Marker { }
|