mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
14 lines
304 B
Java
14 lines
304 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4865660
|
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
|
* @author gafter
|
|
*
|
|
* @compile/fail/ref=Z4.out -XDrawDiagnostics Z4.java
|
|
*/
|
|
|
|
enum Color { red, green, blue }
|
|
|
|
@interface Colored {
|
|
Color value() default Color.teal;
|
|
}
|