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=Z1.out -XDrawDiagnostics Z1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
enum Color { red, green, blue }
|
|
|
|
|
|
|
|
@interface Colored {
|
|
|
|
Color value();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Colored(teal)
|
|
|
|
class Martian {
|
|
|
|
}
|