[ERROR TEMPLATE] Java - Illegal character <character>
nedpals opened this issue · 0 comments
nedpals commented
Name | Type | Code | Language |
---|---|---|---|
Illegal character | Compile-time Error | java.lang.IllegalCharacterError | Java |
Description
A character used is illegal within the context of the code.
Sample Code
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!"+\uFEFF); // Error: Illegal character (BOM)
}
}
Sample Error Message
Main.java:3: error: illegal character: '\ufeff'
System.out.println("Hello, World!"+\uFEFF); // Error: Illegal character (BOM)
^
1 error
Implementation Checklist
- Implemented analysis
- Implemented explanation translation
- Implemented bug fix generation
- Add tests