mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00

When an input character cannot be decoded, include it in the produced error Reviewed-by: jjg
13 lines
321 B
Java
13 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";
|
|
}
|