You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/08/10 09:53:00 UTC
[jira] [Commented] (CSV-300) CSVRecord.toList() does not give write access to the new List
[ https://issues.apache.org/jira/browse/CSV-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577894#comment-17577894 ]
Gary D. Gregory commented on CSV-300:
-------------------------------------
The bug here is that the list is _not_ editable, for example by calling add(""). Fixed in git master.
This now matches toMap() which you could already edit.
> CSVRecord.toList() does not give write access to the new List
> -------------------------------------------------------------
>
> Key: CSV-300
> URL: https://issues.apache.org/jira/browse/CSV-300
> Project: Commons CSV
> Issue Type: Bug
> Affects Versions: 1.9.0
> Reporter: Markus Spann
> Priority: Trivial
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> {{CSVRecord.toList()}} converts the values to a list by calling {{Arrays.asList}} which writes to the private array in calls to {{{}Arrays.ArrayList.set(int, E){}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)