2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-13 00:39:56 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4951298
|
|
|
|
* @summary compiler: crashes when attributes with same elements are used in place of other
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-13 00:39:56 +00:00
|
|
|
* @compile/fail/ref=WrongValue.out -XDrawDiagnostics WrongValue.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
@interface TestM2 {
|
|
|
|
String message() default "MyMessage";
|
|
|
|
Class myClass() default Integer.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface TestM3 {
|
|
|
|
String message() default "MyMessage";
|
|
|
|
Class myClass() default Integer.class;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface X {
|
|
|
|
TestM2 value();
|
|
|
|
}
|
|
|
|
|
|
|
|
@X(@TestM3())
|
|
|
|
class Foo {
|
|
|
|
}
|