[ 
https://issues.apache.org/jira/browse/OPENEJB-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Blevins updated OPENEJB-853:
----------------------------------

        Fix Version/s: (not version related)
    Affects Version/s: (trunk/openejb3)

> CmpUtil.getCmpImplClassName can throw StringIndexOutOfBoundsException
> ---------------------------------------------------------------------
>
>                 Key: OPENEJB-853
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-853
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: cmp2
>    Affects Versions: (trunk/openejb3)
>            Reporter: Rick McGuire
>            Assignee: Rick McGuire
>            Priority: Minor
>             Fix For: (not version related)
>
>
> The CmpUtil.getCmpImplClassName() method has logic to handle classes with no 
> package names.  Unfortunately, that logic is not correct.  The line 
>    String cmpImplClass = ejbClass.substring(0, ejbClass.lastIndexOf('.'));
> Will result in a StringIndexOutOfBoundsException if no "." is found in the 
> classname because substring(0, -1) is not a valid string range. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to