commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Williams <>
Subject Re: Pointers
Date Fri, 28 Jan 2011 23:01:28 GMT
Hah, just sent a reply stating just that.  Thanks.


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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message