2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-07 13:39:31 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4707960 6183529
|
|
|
|
* @summary javac accepts unicode digits - sometimes crashing
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-07-07 13:39:31 -07:00
|
|
|
* @compile/fail/ref=NonasciiDigit.out -XDrawDiagnostics NonasciiDigit.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
public class NonasciiDigit {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
// error: floating literals use ascii only
|
|
|
|
float f = 0.\uff11;
|
|
|
|
}
|
|
|
|
}
|