f033152eae
Produce an error when reading a classfile with a field with ConstantValue with a wrong type. Reviewed-by: vromero
10 lines
272 B
Java
10 lines
272 B
Java
/* @test /nodynamiccopyright/
|
|
* @compile HasBrokenConstantValue.jcod
|
|
* @compile/fail/ref=BrokenConstantValue.out -XDrawDiagnostics BrokenConstantValue.java
|
|
*/
|
|
public class BrokenConstantValue {
|
|
void t() {
|
|
String s = HasBrokenConstantValue.VALUE;
|
|
}
|
|
}
|