commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <sma...@lfjr.net>
Subject Re: [configuration] Numbers conversions
Date Sun, 13 Jun 2004 17:00:08 GMT
Eric Pugh wrote:

> If I put in a really big number and then try to retrieve it as an Integer, 
> getting back -1 would be a rather shock!  I think I would rather hit an
> exception instead, thereby clueing me in that I couldn't downcast... 

Actually it's just consistent with the downcasting in Java:

( (int) Long.MAX_VALUE ) == -1

Emmanuel Bourg


Mime
View raw message