[ 
http://jira.codehaus.org/browse/MJAVACC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MJAVACC-72.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4

Committed in r6144.

> The jtb mojo throws StringIndexOutOfBoundsException when visitor/node package 
> has no dots
> -----------------------------------------------------------------------------------------
>
>                 Key: MJAVACC-72
>                 URL: http://jira.codehaus.org/browse/MJAVACC-72
>             Project: Maven 2.x JavaCC Plugin
>          Issue Type: Bug
>          Components: jtb
>    Affects Versions: 2.3
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>             Fix For: 2.4
>
>
> A mojo configuration using
> {code:xml}
> <nodePackageName>org</nodePackageName>
> {code}
> will cause the following exception
> {noformat}
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of 
> range: -1
>         at java.lang.String.substring(String.java:1762)
>         at java.lang.String.substring(String.java:1735)
>         at org.codehaus.mojo.javacc.JTBMojo.execute(JTBMojo.java:296)
>         ... 18 more
> {noformat}
> due to the line
> {code:java}
> tempDir = new File( baseDir, nodePackagePath.substring( 
> nodePackagePath.lastIndexOf( File.separator ) ) );
> {code}

-- 
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

Reply via email to