author | emc |
Fri, 06 Jun 2014 16:00:59 -0400 | |
changeset 24895 | dd091d389fbf |
parent 15385 | ee1eebe7e210 |
permissions | -rw-r--r-- |
15385 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 6843077 8006775 |
|
4 |
* @summary check for missing annotation value |
|
5 |
* @author Mahmood Ali |
|
6 |
* @compile/fail/ref=MissingAnnotationValue.out -XDrawDiagnostics MissingAnnotationValue.java |
|
7 |
*/ |
|
24895
dd091d389fbf
8027262: Determine location for type annotations earlier in compiler pipeline
emc
parents:
15385
diff
changeset
|
8 |
import java.lang.annotation.*; |
dd091d389fbf
8027262: Determine location for type annotations earlier in compiler pipeline
emc
parents:
15385
diff
changeset
|
9 |
|
15385 | 10 |
class MissingAnnotationValue<K> { |
11 |
MissingAnnotationValue<@A ?> l; |
|
12 |
} |
|
13 |
||
24895
dd091d389fbf
8027262: Determine location for type annotations earlier in compiler pipeline
emc
parents:
15385
diff
changeset
|
14 |
@Target(ElementType.TYPE_USE) |
15385 | 15 |
@interface A { int field(); } |