<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Broken JavaBeans due to pass-by-reference expectation</title>
	<link>http://steep.blogsome.com/2006/07/10/broken-javabeans-due-to-pass-by-reference-expectation/</link>
	<description>Hayden Steep's development obstacle course. (Java, JEE, and beyond)</description>
	<pubDate>Wed, 16 Dec 2009 10:46:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1-alpha</generator>

	<item>
		<title>by: Carsten Saager</title>
		<link>http://steep.blogsome.com/2006/07/10/broken-javabeans-due-to-pass-by-reference-expectation/#comment-3</link>
		<pubDate>Tue, 11 Jul 2006 16:49:35 +0100</pubDate>
		<guid>http://steep.blogsome.com/2006/07/10/broken-javabeans-due-to-pass-by-reference-expectation/#comment-3</guid>
					<description>When returning read-only lists it is always wise to pass them through Collections.unmodifiableList(); of course this is only really safe if all object in the list are immutable, too.

Most of the time an iterator will do, so nobody is tempted to call add on it.

When I want to provide &quot;property-style&quot; access I define a function list1() or whatever the name of the (pseudo)-member is. The effort to do so is not negligable and most of the time all but justified.</description>
		<content:encoded><![CDATA[	<p>When returning read-only lists it is always wise to pass them through Collections.unmodifiableList(); of course this is only really safe if all object in the list are immutable, too.</p>
	<p>Most of the time an iterator will do, so nobody is tempted to call add on it.</p>
	<p>When I want to provide &#8220;property-style&#8221; access I define a function list1() or whatever the name of the (pseudo)-member is. The effort to do so is not negligable and most of the time all but justified.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
