mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8006119: update javac to follow latest spec for repeatable annotations
Reviewed-by: darcy
This commit is contained in:
parent
9e3a121357
commit
a2f594bf74
71 changed files with 243 additions and 675 deletions
|
@ -6,13 +6,11 @@
|
|||
* @compile/fail/ref=MissingValueMethod.out -XDrawDiagnostics MissingValueMethod.java
|
||||
*/
|
||||
|
||||
import java.lang.annotation.ContainedBy;
|
||||
import java.lang.annotation.ContainerFor;
|
||||
import java.lang.annotation.Repeatable;
|
||||
|
||||
@ContainedBy(FooContainer.class)
|
||||
@Repeatable(FooContainer.class)
|
||||
@interface Foo {}
|
||||
|
||||
@ContainerFor(Foo.class)
|
||||
@interface FooContainer{
|
||||
Foo[] values(); // wrong method name
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue