diff -r 000000000000 -r 959103a6100f test/tools/javac/literals/T6891079.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/literals/T6891079.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,12 @@ +/* @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; +}