If an error occurs in the last line of a file that is not terminated with newline, javac adds garbage characters to the end of the line when displaying the line of code in a diagnostic.
- duplicates
-
JDK-6594569 javac prints garbage characters on parse error
-
- Closed
-
-
JDK-6440112 Error includes trailing garbage
-
- Closed
-