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

[jira] [Commented] (CSV-300) CSVRecord.toList() gives write access to private values array

    [ https://issues.apache.org/jira/browse/CSV-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577438#comment-17577438 ] 

Markus Spann commented on CSV-300:
----------------------------------

Pull request [#249|https://github.com/apache/commons-csv/pull/249] created.

> CSVRecord.toList() gives write access to private values array
> -------------------------------------------------------------
>
>                 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: 10m
>  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)