2009-10-13 22:26:30 +00:00
|
|
|
/* @test /nodynamiccopyright/
|
2016-01-11 10:21:10 +00:00
|
|
|
* @bug 6891079 8056897
|
2009-10-13 22:26:30 +00:00
|
|
|
* @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;
|
|
|
|
}
|