Issue Details (XML | Word | Printable)

Key: CLMVN-42
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Nick Pellow
Reporter: Neeraj Jhanji
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Clover Maven Plugin

Unable to instrument tests named using Japanese characters

Created: 20/Apr/08 07:27 PM   Updated: 12/May/08 01:39 AM
Component/s: None
Affects Version/s: None
Fix Version/s: Clover2 2.3.1
Security Level: public (Anyone can view the issue)

Time Tracking:
Not Specified

Labels:


 Description  « Hide
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?



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
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