langtools/test/tools/javac/BadHexConstant.java
author lana
Thu, 21 Jan 2016 09:46:01 -0800
changeset 35340 38f7386ed942
parent 34997 8174a7d851fb
permissions -rw-r--r--
Added tag jdk-9+102 for changeset 7e3feb2ba5b3

/*
 * @test /nodynamiccopyright/
 * @bug 4049982 8056897
 * @summary Compiler permitted invalid hex literal.
 * @author turnidge
 *
 * @compile/fail/ref=BadHexConstant.out -XDrawDiagnostics  BadHexConstant.java
 */

public
class BadHexConstant {
    long i = 0xL;
}