Updated on 2026-08-10 GMT+08:00

Unicode Parsing Error

Symptom

A task checked by the sonarqube engine fails, and the log indicates that characters that cannot be parsed exist.

Cause Analysis

Java compiler handles code and Unicode characters, with Unicode being top priority. \u000d is a line break, making the compiler see next code as new line, avoiding format problems.

However, in the check by the sonarqube engine, lines with \u000d are commented out, leading to an extra close curly bracket (}), so a compilation error occurs when compilation rules are used.

Solution

Remove // or manually place the open curly bracket ({) on a new line.