google / google/google-java-format
Unclear error messages for invisible whitespace
オープン
IntelliJ
- 主要言語
- Java
- スター
- 6.2k
- フォーク
- 937
- 平均マージ
- 6分
- マージ済み PR(30日)
- 3
説明
The following program with a zero width space after the `println` is executable but cannot not be formatted
```
public class Main {
public static void main(String[] args) {
System.out.println("hello");
}
}
```
```
% java -version
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment Zulu19.30+11-CA (build 19.0.1+10)
OpenJDK 64-Bit Server VM Zulu19.30+11-CA (build 19.0.1+10, mixed mode, sharing)
% javac Main.java
% java Main
hello
% google-java-format --version
google-java-format: Version 1.17.0
% google-java-format Main.java
Main.java:3:10: error: expected token: 'println'; generated println instead
```
コントリビューションガイド
評価
この issue はまだ評価されていません。