jdk-24/test/langtools/tools/javac/BadHexConstant.java

14 lines
266 B
Java
Raw Normal View History

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