You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Sascha Rodekamp (JIRA)" <ji...@apache.org> on 2011/09/16 13:32:09 UTC
[jira] [Assigned] (OFBIZ-4425) Wrong use of toArray() method
[ https://issues.apache.org/jira/browse/OFBIZ-4425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sascha Rodekamp reassigned OFBIZ-4425:
--------------------------------------
Assignee: Sascha Rodekamp
> Wrong use of toArray() method
> -----------------------------
>
> Key: OFBIZ-4425
> URL: https://issues.apache.org/jira/browse/OFBIZ-4425
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Reporter: Dimitri Unruh
> Assignee: Sascha Rodekamp
> Attachments: OFBIZ-4425.patch
>
>
> just a short example:
> {code}
> Collection<String> foo;
> ....
> String[] temp = (String[]) foo.toArray();
> {code}
> So we will get (usually ) a ClassCastException, because toArray() return an Object[]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira