New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: CLOV-236
Type: Improvement Improvement
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Nick Pellow [Atlassian]
Reporter: Neeraj Jhanji [Atlassian]
Votes: 0
Watchers: 0
Operations

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

maven-clover-plugin is unable to process source which contains method name in Japanese

Created: 17/Apr/08 10:03 PM   Updated: 20/Apr/08 07:28 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3

Time Tracking:
Not Specified

Participants: Neeraj Jhanji [Atlassian] and Nick Pellow [Atlassian]
Since last comment: 18 weeks, 5 days ago
Resolution Date: 20/Apr/08 07:28 PM
Labels:


 Description  « Hide
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      Sort Order: Ascending order - Click to sort in descending order
Nick Pellow [Atlassian] added a comment - 18/Apr/08 02:45 AM
Hi Neeraj,

Thank you for reporting this. I will look into what is going on here and try and find a fix or work around for you.

Best Regards,
Nick Pellow.


Nick Pellow [Atlassian] added a comment - 20/Apr/08 07:28 PM
I've moved this to the maven-clover-plugin project JIRA: http://developer.atlassian.com/jira/browse/CLMVN-42