BadHexConstant.java revision 3201:c3b040ed4122
1/*
2 * @test /nodynamiccopyright/
3 * @bug 4049982 8056897
4 * @summary Compiler permitted invalid hex literal.
5 * @author turnidge
6 *
7 * @compile/fail/ref=BadHexConstant.out -XDrawDiagnostics  BadHexConstant.java
8 */
9
10public
11class BadHexConstant {
12    long i = 0xL;
13}
14