| 1 |
package test0167; |
| 2 |
|
| 3 |
import java.lang.annotation.Target; |
| 4 |
import static java.lang.annotation.ElementType.*; |
| 5 |
import java.lang.annotation.Retention; |
| 6 |
import static java.lang.annotation.RetentionPolicy.*; |
| 7 |
import static test0167.Jpf.*; |
| 8 |
|
| 9 |
interface Jpf { |
| 10 |
@Target(value=METHOD) |
| 11 |
@Retention(value=RUNTIME) |
| 12 |
public static @interface ExceptionHandler {} |
| 13 |
|
| 14 |
@Target(value=ANNOTATION_TYPE) |
| 15 |
@Retention(value=RUNTIME) |
| 16 |
public static @interface Forward {} |
| 17 |
} |
| 18 |
|
| 19 |
public class X { |
| 20 |
|
| 21 |
@Jpf.ExceptionHandler() |
| 22 |
protected Forward newExceptionHandler1(Exception ex, String actionName, |
| 23 |
String message, Object form) |
| 24 |
{ |
| 25 |
return null; |
| 26 |
} |
| 27 |
} |