You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "David Ezzio (JIRA)" <ji...@apache.org> on 2007/05/08 01:13:15 UTC

[jira] Updated: (OPENJPA-237) Value.setAliases does not copy alias strings

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

David Ezzio updated OPENJPA-237:
--------------------------------

    Attachment: Value.diff

SVN diff for the change required, plus a test case.

> Value.setAliases does not copy alias strings
> --------------------------------------------
>
>                 Key: OPENJPA-237
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-237
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: lib
>    Affects Versions: 0.9.7
>            Reporter: David Ezzio
>         Attachments: Value.diff
>
>
> The org.apache.openjpa.lib.conf.Value.setAliases method does not copy the array of strings passed as a parameter.  As a result, later operations on the Value object's aliases can change the array that the caller is using.  This method should be pass by value rather than by reference -- in other words, the method should copy the array.

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