commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-673) WordUtils.abbreviate() throws undocumented StringIndexOutOfBoundsException (ACTION: Method Removed)
Date Thu, 27 Jan 2011 07:56:45 GMT

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

Henri Yandell updated LANG-673:
-------------------------------

    Summary: WordUtils.abbreviate() throws undocumented StringIndexOutOfBoundsException (ACTION:
Method Removed)  (was: WordUtils.abbreviate() throws undocumented StringIndexOutOfBoundsException
(Method Removed))

> WordUtils.abbreviate() throws undocumented StringIndexOutOfBoundsException (ACTION: Method
Removed)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LANG-673
>                 URL: https://issues.apache.org/jira/browse/LANG-673
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.5
>            Reporter: Paul Benedict
>             Fix For: 3.0
>
>
> The javadoc does not indicate that the string must already be long enough to abbreviate;
yet it really does or an Exception is thrown. For example, if you try to abbreviate a string
of length 10 at 40 characters, this will fail. I believe this should be allowed... just without
any abbreviation.

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


Mime
View raw message