You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Rodrigo Canabrava <ca...@gmail.com> on 2006/12/19 18:45:28 UTC

BigDecimalLocaleConverter is not working as expected

The class
org.apache.commons.beanutils.locale.converters.BigDecimalLocaleConverter is
not converting to BigDecimal, but instead, it converts to Long or Double.

It seems the problem is that the class distributed (in releases 1.7.0 and
1.6.1) do not correspond to the code found at
http://jakarta.apache.org/commons/beanutils/xref/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverter.html


In the class distributed in the jars, the method parse(Object, String) is
not overriden.

Should that be reported as a bug? Didn't anyone else ever noticed this?

a+
Rodrigo

Re: BigDecimalLocaleConverter is not working as expected

Posted by Niall Pemberton <ni...@gmail.com>.
On 12/19/06, Rodrigo Canabrava <ca...@gmail.com> wrote:
> The class
> org.apache.commons.beanutils.locale.converters.BigDecimalLocaleConverter is
> not converting to BigDecimal, but instead, it converts to Long or Double.

This was reported as a bug and fixed a couple of years ago - but there
hasn't been a BeanUtils release since then :-(

  http://svn.apache.org/viewvc?view=rev&revision=128818
  http://issues.apache.org/jira/browse/BEANUTILS-131

> It seems the problem is that the class distributed (in releases 1.7.0 and
> 1.6.1) do not correspond to the code found at
>
http://jakarta.apache.org/commons/beanutils/xref/org/apache/commons/beanutils/locale/converters/BigDecimalLocaleConverter.html

Thats the latest code - which is why it doesn't correspond to either
of the versions you mention.

Niall

> In the class distributed in the jars, the method parse(Object, String) is
> not overriden.
>
> Should that be reported as a bug? Didn't anyone else ever noticed this?
>
> a+
> Rodrigo
>
>

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