langtools/test/tools/javac/literals/T6891079.java
author jlahoda
Mon, 11 Jan 2016 11:21:10 +0100
changeset 34997 8174a7d851fb
parent 4072 70eaf9773f81
permissions -rw-r--r--
8056897: Improve error recovery for empty binary and hexadecimal literals. Reviewed-by: mcimadamore

/* @test /nodynamiccopyright/
 * @bug 6891079 8056897
 * @summary Compiler allows invalid binary literals 0b and oBL
 * @compile/fail/ref=T6891079.out -XDrawDiagnostics T6891079.java
 */

class Test {
    int bi = 0B;
    long bl = 0BL;
    int xi = 0X;
    long xl = 0XL;
}