You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2022/10/17 12:09:00 UTC

[jira] [Updated] (TEXT-219) StringTokenizer#getTokenList does not support #remove

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

Alex Herbert updated TEXT-219:
------------------------------
    Description: 
Upgraded to 1.10 from 1.9 and the {{StringTokenizer#getTokenList}} method now returns an {{Arrays$ArrayList}} instead of a regular {{{}ArrayList{}}}.

This causes calls to #add and #remove to throw UnsupportedOperationExceptions, even if the documentation states this returns modifiable lists

  was:
Upgraded to 1.10 from 1.9 and the {{StringTokenizer#toTokenList}} method now returns an {{Arrays$ArrayList}} instead of a regular {{{}ArrayList{}}}.

This causes calls to #add and #remove to throw UnsupportedOperationExceptions, even if the documentation states this returns modifiable lists


> StringTokenizer#getTokenList does not support #remove
> -----------------------------------------------------
>
>                 Key: TEXT-219
>                 URL: https://issues.apache.org/jira/browse/TEXT-219
>             Project: Commons Text
>          Issue Type: Bug
>    Affects Versions: 1.10.0
>            Reporter: Jaap Sperling
>            Priority: Major
>
> Upgraded to 1.10 from 1.9 and the {{StringTokenizer#getTokenList}} method now returns an {{Arrays$ArrayList}} instead of a regular {{{}ArrayList{}}}.
> This causes calls to #add and #remove to throw UnsupportedOperationExceptions, even if the documentation states this returns modifiable lists



--
This message was sent by Atlassian Jira
(v8.20.10#820010)