<div class="gmail_quote">On Wed, Oct 14, 2009 at 4:35 PM, Martin Marinschek <span dir="ltr"><<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Dan,<br>
<br>
fact is that the spec says this:<br>
<br>
Coerce A to Boolean<br>
<br>
* If A is null or "", return false<br>
* Otherwise, if A is a Boolean, return A<br>
* Otherwise, if A is a String, and Boolean.valueOf(A) does not<br>
throw an exception, return it<br>
<br>
so it DOES touch the nulls. I don't know either who came up with this.<br></blockquote><div><br>Right, I agree with you. I'm saying that this is silly behavior. Either it should leave null alone or choose to convert it only *if* the expected-type is a primitive (in this case a primitive boolean).<br>
<br>-Dan<br></div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>