commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEANUTILS-447) LazyDynaList.toArray() is not conform to the contract defined by the Collection interface
Date Sat, 26 Oct 2013 16:58:34 GMT
Oliver Heger created BEANUTILS-447:
--------------------------------------

             Summary: LazyDynaList.toArray() is not conform to the contract defined by the
Collection interface
                 Key: BEANUTILS-447
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-447
             Project: Commons BeanUtils
          Issue Type: Bug
          Components: DynaBean
    Affects Versions: 1.8.3
            Reporter: Oliver Heger
             Fix For: LATER THAN 1.8.4


The documentation of the toArray(T[]) method says that the passed in array is used and returned
if its size is sufficient. The implementation of {{LazyDynaList}} violates this contract;
it always creates a new array.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message