commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Thomas <greg.d.tho...@gmail.com>
Subject Re: [configuration] Re: CompositeConfiguration Checking Existence of Properties.
Date Thu, 01 Nov 2012 11:36:05 GMT
>>
>> You can't cast null objects.
>
> This is not directly relevant, but yes, you can cast null to any
> object type, because any object type can be null.

I don't know why I wrote that, but of course you are quite correct. I
suspect I was getting myself muddled with

Double foo = null;
double bar = (double)foo;

which is caused by the unboxing behaviour - i.e. calling foo.doubleValue().

Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message