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

        

Reply via email to