commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "schierge.tobias" <>
Subject [Jexl] Number type Coercion
Date Fri, 15 Sep 2006 20:11:28 GMT


in Jexl it is not possible to use a custom Number without losing decimals
because Number instances are always converted to Long. Other Types as Double
or Float cannot be customized as they are final.

I'm trying to use a double  value which also implements a list interface for
indexed access to simulate value histories (class Xxx extends Number
implements List<Double>). This is not possible, No custom Types  at all can
be converted to Double or Float. Wouldn't it be more consistent to use the
doubleValue or floatValue  method of number when resolving the value?


View this message in context:
Sent from the Commons - User forum at

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

View raw message