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