2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-29 07:42:42 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2016-01-11 10:21:10 +00:00
|
|
|
* @bug 4049982 8056897
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary Compiler permitted invalid hex literal.
|
|
|
|
* @author turnidge
|
|
|
|
*
|
2014-08-29 07:42:42 +00:00
|
|
|
* @compile/fail/ref=BadHexConstant.out -XDrawDiagnostics BadHexConstant.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public
|
|
|
|
class BadHexConstant {
|
|
|
|
long i = 0xL;
|
|
|
|
}
|