Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 27070 invoked from network); 15 Mar 2004 18:08:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Mar 2004 18:08:43 -0000 Received: (qmail 37618 invoked by uid 500); 15 Mar 2004 18:08:32 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 37554 invoked by uid 500); 15 Mar 2004 18:08:32 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 37541 invoked from network); 15 Mar 2004 18:08:32 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 15 Mar 2004 18:08:32 -0000 Received: (qmail 28709 invoked by uid 50); 15 Mar 2004 18:09:08 -0000 Date: 15 Mar 2004 18:09:08 -0000 Message-ID: <20040315180908.28708.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 27661] - [lang] [patch] ArrayUtils.addAll doesn't always return new array X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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 ------- Additional Comments From ggregory@seagullsw.com 2004-03-15 18:09 ------- I think we need to discuss this. You are correct that the Javadoc states that a new array is returned but the Javadoc ALSO states the special cases: ArrayUtils.addAll(array1, null) = array1 ArrayUtils.addAll(null, array2) = array2 Which clearly show the boundary cases. So the code and Javadoc DO match. The real question for the API is: Should a new array ALWAYS be created? --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org