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

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Duplicate
    • 2.3
    • Component/s: None
    • None

      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?

              Assignee:
              Unassigned
              Reporter:
              Neeraj Jhanji
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: