You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Stephen Colebourne (JIRA)" <ji...@codehaus.org> on 2005/06/19 16:29:52 UTC

[jira] Created: (MPJCOVERAGE-31) StringIndexOutOfBoundsException in getShortFilename

StringIndexOutOfBoundsException in getShortFilename
---------------------------------------------------

         Key: MPJCOVERAGE-31
         URL: http://jira.codehaus.org/browse/MPJCOVERAGE-31
     Project: maven-jcoverage-plugin
        Type: Bug
    Versions: 1.0.9    
    Reporter: Stephen Colebourne
 Assigned to: Emmanuel Venisse 
    Priority: Minor
 Attachments: UnmarshallerPatch.txt

It is possible to get a StringIndexOutOfBoundsException in CoverageReport.getShortFilename.

It turns out that this is due to a filename of:
  org/somewhere/null
instead of
  org/somewhere/file.java

The exception comes from the missing dot.


The root cause of the problem is a bad jcoverage.ser file. However, this could be better handled, see attached patch. (No test case attached, as I've no idea how the jcoverage.ser file got screwed)



-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MPJCOVERAGE-31) StringIndexOutOfBoundsException in getShortFilename

Posted by "Erik Forkalsrud (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPJCOVERAGE-31?page=all ]

Erik Forkalsrud updated MPJCOVERAGE-31:
---------------------------------------

    Attachment: JCoveragePatch2.txt

I guess I should attach  the patch to this issue rather than linking to it.


> StringIndexOutOfBoundsException in getShortFilename
> ---------------------------------------------------
>
>          Key: MPJCOVERAGE-31
>          URL: http://jira.codehaus.org/browse/MPJCOVERAGE-31
>      Project: maven-jcoverage-plugin
>         Type: Bug
>     Versions: 1.0.9
>     Reporter: Stephen Colebourne
>     Assignee: Emmanuel Venisse
>     Priority: Minor
>  Attachments: JCoveragePatch2.txt, UnmarshallerPatch.txt
>
>
> It is possible to get a StringIndexOutOfBoundsException in CoverageReport.getShortFilename.
> It turns out that this is due to a filename of:
>   org/somewhere/null
> instead of
>   org/somewhere/file.java
> The exception comes from the missing dot.
> The root cause of the problem is a bad jcoverage.ser file. However, this could be better handled, see attached patch. (No test case attached, as I've no idea how the jcoverage.ser file got screwed)

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPJCOVERAGE-31) StringIndexOutOfBoundsException in getShortFilename

Posted by "Erik Forkalsrud (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPJCOVERAGE-31?page=comments#action_43471 ] 

Erik Forkalsrud commented on MPJCOVERAGE-31:
--------------------------------------------

I have a patch for this at  http://forkalsrud.org/~erik/JCoveragePatch2.txt


> StringIndexOutOfBoundsException in getShortFilename
> ---------------------------------------------------
>
>          Key: MPJCOVERAGE-31
>          URL: http://jira.codehaus.org/browse/MPJCOVERAGE-31
>      Project: maven-jcoverage-plugin
>         Type: Bug
>     Versions: 1.0.9
>     Reporter: Stephen Colebourne
>     Assignee: Emmanuel Venisse
>     Priority: Minor
>  Attachments: UnmarshallerPatch.txt
>
>
> It is possible to get a StringIndexOutOfBoundsException in CoverageReport.getShortFilename.
> It turns out that this is due to a filename of:
>   org/somewhere/null
> instead of
>   org/somewhere/file.java
> The exception comes from the missing dot.
> The root cause of the problem is a bad jcoverage.ser file. However, this could be better handled, see attached patch. (No test case attached, as I've no idea how the jcoverage.ser file got screwed)

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org