On Mon, Apr 11, 2011 at 9:44 AM, tanteanni <[email protected]> wrote: > using list.add also "adds" to the list given in constructor? i know > it's probably a java-noob question but why it is different to > onSuccess ... list = result ? (besides that this isn't working ;-))
Wow... this is so much easier to describe with paper and some drawings. :) You were on to it with the by-value versus by-reference question. By passing the collection, anyone can add to it if they have a copy of your reference. What they can not do is modify the original reference to point to a new collection. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
