blob: 5bab1d27043b0522b9786dd1e25b2b573472fdcc (
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
31
32
33
34
35
36
37
38
39
40
41
|
/*
* Created on 22.10.2004
*/
/**
* @author Thomas Knauth
*/
public class PR79554
{
public static void main(String[] args)
{
try
{
if ( args.length < 0 )
{
System.out.println("Usage!");
return;
}
throw new Exception();
}
catch ( Throwable e )
{
System.out.println( "exception caught!" );
//e.printStackTrace();
}
finally
{
System.out.println("finally block entered!");
}
}
}
aspect Aspect {
pointcut main(): execution(void main(String[]));
after(): main(){
System.out.println("Aspect calling after main!");
}
}
|