Plugin crashes when Java elements have special characters
---------------------------------------------------------
Key: MOJO-607
URL: http://jira.codehaus.org/browse/MOJO-607
Project: Mojo
Issue Type: Bug
Components: javancss
Reporter: Fabrice BELLINGARD
One of my team mate found this bug when using a 'é' char on a Java method.
When JavaNCSS generates the XML report file, it doesn't specify the file
encoding in the <xml> tag (at the very beginning of the file). So when the MOJO
reads the report file, it doesn't know which encoding it should use and crashes
when reading the report file.
Looking quickly at the NcssReportMojo class, it looks like specifying the file
encoding in the #loadDocument(File file) method should fix the bug (but I
haven't tested it):
reader.setEncoding(System.getProperty("file.encoding"));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email