You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Rodney Waldhoff <rw...@apache.org> on 2002/12/04 02:40:58 UTC
[beanutils] adding Number support to Converter?
Would anyone have any issues with adding support for java.lang.Number
instances to ByteConverter, IntegerConverter, etc. I.e., something along
the lines of (in ByteConverter for example):
if(value instanceof Number) {
return new Byte(((Number)value).byteValue());
}
just after the test for (value instanceof Byte).
I'm already using a "wrapping" implementation of this in the Jelly ArgTag
<http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/ArgTag.java>
but this would change the semantics of the beanutils Converters slightly,
so I wanted to run a brief sanity check first.
- Rod
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>