commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Thomas <>
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().


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message