If you use maven-clover-plugin for a project using Maven2,
and source code contains Japanese (UTF-8) characters,
For example, if the method name for TestCase class includes Japanese
public void test_IsEzEmoji_nullのとき() throws Exception {
..
If you execute
$ mvn site
then you get the error
Clover all over. Instrumented 29 files (14 packages).
Clover Version 2.1.0, built on February 14 2008 (build-693)
Loaded from: c:\lib\.m2\repository\com\cenqua\clover\clover\2.1.0\clover-2.1.0.jar
Clover: Commercial License registered to Furyu KK.
Updating existing database at 'C:\workspace\furyu-core\target\clover\clover.db'.
Processing files at 1.5 source level.
ERROR: C:\workspace\furyu-core\src\test\java\jp\furyu\core\mobile\ez\EzUtilTest.
java:19:0:unexpected char: ?
ERROR: Instrumentation error
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
Line 19, the cause for the error, is the line where the method is being declared.
If the Japanese text is deleted from the method name, it works fine.
When this project was using clover-ant before, this type of problem did not exist.
Therefore, we suspect that the maven-clover plugin is unable to handle Japanese characters in source code.
Could you please fix this?
Description
copied from: http://jira.atlassian.com/browse/CLOV-236
If you use maven-clover-plugin for a project using Maven2,
and source code contains Japanese (UTF-8) characters,
For example, if the method name for TestCase class includes Japanese
public void test_IsEzEmoji_nullのとき() throws Exception {
..
If you execute
$ mvn site
then you get the error
Clover all over. Instrumented 29 files (14 packages).
Clover Version 2.1.0, built on February 14 2008 (build-693)
Loaded from: c:\lib\.m2\repository\com\cenqua\clover\clover\2.1.0\clover-2.1.0.jar
Clover: Commercial License registered to Furyu KK.
Updating existing database at 'C:\workspace\furyu-core\target\clover\clover.db'.
Processing files at 1.5 source level.
ERROR: C:\workspace\furyu-core\src\test\java\jp\furyu\core\mobile\ez\EzUtilTest.
java:19:0:unexpected char: ?
ERROR: Instrumentation error
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
Line 19, the cause for the error, is the line where the method is being declared.
If the Japanese text is deleted from the method name, it works fine.
When this project was using clover-ant before, this type of problem did not exist.
Therefore, we suspect that the maven-clover plugin is unable to handle Japanese characters in source code.
Could you please fix this?
I've just the made the change which fixes this. You can now specify:
-Dmaven.clover.encoding=
on the command line to set the character encoding to use.
Nick Pellow added a comment - 12/May/08 01:37 AM Hi Neeraj.
I've just the made the change which fixes this. You can now specify:
-Dmaven.clover.encoding=
on the command line to set the character encoding to use.
We hope to have this fix released this week.
Sorry for the delay.
Cheers,
Nick
I've just the made the change which fixes this. You can now specify:
-Dmaven.clover.encoding=
on the command line to set the character encoding to use.
We hope to have this fix released this week.
Sorry for the delay.
Cheers,
Nick