You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/15 14:03:36 UTC
DO NOT REPLY [Bug 27661] New: -
[lang] [patch] ArrayUtils.addAll doesn't always return new array
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27661>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27661
[lang] [patch] ArrayUtils.addAll doesn't always return new array
Summary: [lang] [patch] ArrayUtils.addAll doesn't always return
new array
Product: Commons
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Lang
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: Maarten.Coene@qmedit.com
Hi,
according to the javadoc of the ArrayUtils.addAll() method, a new array is
returned. However, if 1 of the 2 given arrays is null, the not-null array is
returned (and not a new array).
attached are a fix and a junit test
Maarten
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org