You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Dimitri Unruh (JIRA)" <ji...@apache.org> on 2011/09/16 12:54:09 UTC
[jira] [Created] (OFBIZ-4425) Wrong use of toArray() method
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
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
[jira] [Closed] (OFBIZ-4425) Wrong use of toArray() method
Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-4425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sascha Rodekamp closed OFBIZ-4425.
----------------------------------
Resolution: Fixed
Fix Version/s: SVN trunk
Thanks Dimitri (again :-) )
Your patch is in trunk @Rev1173607
> 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
> Fix For: SVN trunk
>
> 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
[jira] [Assigned] (OFBIZ-4425) Wrong use of toArray() method
Posted by "Sascha Rodekamp (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (OFBIZ-4425) Wrong use of toArray() method
Posted by "Dimitri Unruh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-4425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimitri Unruh updated OFBIZ-4425:
---------------------------------
Attachment: OFBIZ-4425.patch
> 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
> 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