langtools/test/tools/javac/literals/T6891079.java
author jjg
Tue, 13 Oct 2009 15:26:30 -0700
changeset 4072 70eaf9773f81
child 34997 8174a7d851fb
permissions -rw-r--r--
6891079: Compiler allows invalid binary literals 0b and oBL Reviewed-by: darcy

/* @test /nodynamiccopyright/
 * @bug 6891079
 * @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;
}