mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -30,17 +30,15 @@
|
|||
* @compile ClassReaderDefault.java
|
||||
* @compile SeparateCompile.java
|
||||
*/
|
||||
import java.lang.annotation.ContainedBy;
|
||||
import java.lang.annotation.ContainerFor;
|
||||
import java.lang.annotation.Repeatable;
|
||||
|
||||
public class ClassReaderDefault {
|
||||
}
|
||||
|
||||
@ContainerFor(Foo.class)
|
||||
@interface FooContainer {
|
||||
Foo[] value();
|
||||
int f() default 0;
|
||||
}
|
||||
|
||||
@ContainedBy(FooContainer.class)
|
||||
@Repeatable(FooContainer.class)
|
||||
@interface Foo {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue