You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2005/03/03 07:09:23 UTC

[jira] Created: (MPJCOVERAGE-23) rendering bug

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPJCOVERAGE-23

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJCOVERAGE-23
    Summary: rendering bug
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-jcoverage-plugin

   Assignee: Emmanuel Venisse
   Reporter: Brett Porter

    Created: Thu, 3 Mar 2005 1:08 AM
    Updated: Thu, 3 Mar 2005 1:08 AM

Description:
I found a bug at org.apache.maven.jcoveragereport.JavaToHtml:

The string
   public void hello(final String foo, final String bar)
turns into
   public void hello(final String foo, "keyword"> String bar)

the <span class=\"keyword\"> replaces the 'class' again and generates
<span <span class="keyword">="keyword">final

I fixed that the following way (UPPERCASE):

    private static HashMap reservedWords = new HashMap();
    private static boolean inMultiLineComment = false;
    private static String commentStart = "<span CLASS=\"comment\">";
    private static String commentEnd = "</span>";
    private static String stringStart = "<span CLASS=\"string\">";
    private static String stringEnd = "</span>";
    private static String reservedWordStart = "<span CLASS=\"keyword\">";
    private static String reservedWordEnd = "</span>";



Other minor bug... semicolon is missing at &#34

        // replace \" sequences with HTML escape sequences;
        line = replace(line, "" + (char) 92 + (char) 34, "&#92;&#34");

Regards 
Allan Jones
https://genesis.dev.java.net/
Summa Technologies do Brasil Ltda.





---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org