'java: unclosed character literal while running test in IntelliJ
I'm having trouble launching single unit tests from IntelliJ IDEA IDE because of the error:
java: unclosed character literal
which is found in many places of my working codebase. This error prevents the IDE to compile the codebase and launch the tests.
Instead, when I launch the tests with maven I get no error at all. The points that give me error are single chars usage like these:
stringVal.append(date).append('§');
or
translateLabel(s.replace('«','<'))
So the error is improper, considering that I am not using single quotes to declare strings.
I guess it has something to do with the encoding, so the IntelliJ Idea IDE is like seeing more than 1 char among those quotes, but maven interprets them correctly and returns no error at all.
I've tried to adjust the IDE configuration to bring to warnings the encoding errors but with no result.
Any suggestion?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
