Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 93811 invoked from network); 28 Jan 2011 23:01:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 23:01:56 -0000 Received: (qmail 46960 invoked by uid 500); 28 Jan 2011 23:01:56 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 46836 invoked by uid 500); 28 Jan 2011 23:01:55 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 46828 invoked by uid 99); 28 Jan 2011 23:01:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 23:01:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stephendwilliams@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 23:01:49 +0000 Received: by wyb38 with SMTP id 38so3714060wyb.30 for ; Fri, 28 Jan 2011 15:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=IHGjNoTwgKOdC3k6OgoT6mD7/Dkk42W+S2xXGwnfIAk=; b=nMG+lWEe2PYunkbn+Yj+3XYaN7DaW1ssKH5cHZH0QB5pPMOz99eLp/bi21a82BAHAH UDSPNhdeKOy5BOr+wxmbkE4+CS8uc2dpIAHxPhGzB1udsAxmt4DFXtwzLHMOSE0TBsfW 1zfMBzRNZZp5oPxcYhv//82dUma1TWvOy/nrM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=EfhXKORHsvwrd/s5XRzOcI4VhdWmp5OcNqQfCr/CUfO9aDYJd1+vqZ6ZCkyhgTetmK 9hRg9X2Zm5CvvZwaSMKfTvED5cW/wJzizNpvS7QlBjLdfPEM2lMRAQg/cmZt+Qs1NgPl EBwT47+eGI59vJ2HiQstYKvxfa0x7LzXMZGTE= MIME-Version: 1.0 Received: by 10.216.10.208 with SMTP id 58mr3807741wev.14.1296255688107; Fri, 28 Jan 2011 15:01:28 -0800 (PST) Sender: stephendwilliams@gmail.com Received: by 10.216.60.68 with HTTP; Fri, 28 Jan 2011 15:01:28 -0800 (PST) In-Reply-To: References: <59E47574-D831-4376-A1A3-FB833350E628@gmail.com> Date: Fri, 28 Jan 2011 15:01:28 -0800 X-Google-Sender-Auth: tMIMYD0bjuT-oO6jBwE71wSBBJM Message-ID: Subject: Re: Pointers From: Stephen Williams To: Commons Developers List Content-Type: multipart/alternative; boundary=0016364d2633d3e5e1049af00b10 --0016364d2633d3e5e1049af00b10 Content-Type: text/plain; charset=UTF-8 Hah, just sent a reply stating just that. Thanks. Stephen On Fri, Jan 28, 2011 at 2:45 PM, Brent Worden wrote: > Actually, funkyChanger will not work because you are effectively > reassigning the argument. Since all arguments in Java are passed by > value, the assignment is not realized by the caller. > > The only ways to get argument changes surfaced to the caller are using > a typed return or passing in an argument whose state can be modified > (and not by assignment). > > As discussed in this thread, one way to accomplish this for primitives > is by using the MutableXxxx types found in Apache Commons Lang. > Another common way is to using a single element array. > > Thanks, > > Brent. > --0016364d2633d3e5e1049af00b10--