[ https://issues.apache.org/jira/browse/LANG-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985254#action_12985254 ]
Henri Yandell commented on LANG-673: ------------------------------------ I don't think so. I've removed the WordUtils.abbreviate version as it's the newer of the pair. svn ci -m "Removing WordUtils.abbreviate as it's already found in StringUtils.abbreviate. This was identified in LANG-673" src/main/java/org/apache/commons/lang3/text/WordUtils.java src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java Sending src/main/java/org/apache/commons/lang3/text/WordUtils.java Sending src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java Transmitting file data .. Committed revision 1062328. Leaving this open to discuss whether the StringUtils.abbreviate method is preferred in WordUtils. > WordUtils.abbreviate() throws undocumented StringIndexOutOfBoundsException > -------------------------------------------------------------------------- > > 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.