2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-12 17:48:30 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4865660
|
|
|
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-12 17:48:30 -07:00
|
|
|
* @compile/fail/ref=Z2.out -XDrawDiagnostics Z2.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
enum Color { red, green, blue }
|
|
|
|
|
|
|
|
interface Colored {
|
2014-08-12 17:48:30 -07:00
|
|
|
Color value() default Color.red;
|
2007-12-01 00:00:00 +00:00
|
|
|
}
|