[seam-dev] Seam 2.1.1.CR2

Pete Muir pmuir at redhat.com
Fri Dec 5 05:51:30 EST 2008


Not really, file an issue in JIRA.

On 4 Dec 2008, at 22:35, Francisco Jose Peredo wrote:

> Sanne Grinovero escribió:
>>
>> 2008/12/4 Gavin King <gavin at hibernate.org>:
>>
>>> Sometimes you need null values, sometimes you don't. Java should let
>>> you declare whether a value accepts null as part of the type
>>> declaration (i.e. @Nullable Foo foo), and non-nullable should be the
>>> default. But Java doesn't have this facility, so we just have to  
>>> live
>>> with it.
>>>
>> A good practice should be to use "boolean" for not nullables (the  
>> primitive one)
>> as it can't be null; reserve the wrapper Boolean for values which  
>> can be null.
>> This has nothing to do with SQL of course ;-)
>>
>
> All right lets check the case of IsUserInRole.isUserInRole does it  
> really make sense to answer to the question:
> "Is user XXXX in role YYYYY?"  with a null? if we are not sure,  
> shoulnt we default to "false" (or throw an exception?)
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20081205/cc24c49f/attachment.html 


More information about the seam-dev mailing list