Jan Lahoda 41258c689d 8078559: Update error message to indicate illegal character when encoding set to ascii
When an input character cannot be decoded, include it in the produced error

Reviewed-by: jjg
2016-05-16 15:41:57 +02:00

14 lines
321 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4767128 5048557 5048773 8078559
* @summary diagnose encoding errors in Java source files
* @author gafter
*
* @compile/fail/ref=Unmappable.out -XDrawDiagnostics -encoding ascii Unmappable.java
*/
// example from 4766897
public class Unmappable {
String s = "zähler";
}