| 1 |
@Retention package test0006; |
| 2 |
|
| 3 |
@interface Name { |
| 4 |
String first() default "Joe"; |
| 5 |
String last() default "Smith"; |
| 6 |
int age(); |
| 7 |
} |
| 8 |
|
| 9 |
@interface Author { |
| 10 |
Name value(); |
| 11 |
} |
| 12 |
|
| 13 |
@interface Retention { |
| 14 |
} |
| 15 |
|
| 16 |
@Retention() @Author(@Name(first="Joe", last="Hacker", age=32)) |
| 17 |
class X {} |