users@glassfish.java.net

Re: BigDecimal persistence problem

From: <glassfish_at_javadesktop.org>
Date: Wed, 02 Jan 2008 04:51:33 PST

I think I've found the offending line in the Top Link Essentials source.

In
entity-persistence/src/java/oracle/toplink/essentials/internal/helper/ConversionManager.java

Line 200
Should be
                bigDecimal = BigDecimal.valueOf(((Number)sourceObject).doubleValue());
instead of
                bigDecimal = new BigDecimal(((Number)sourceObject).doubleValue());


It also looks like this is a systemic problem with new BigDeciaml(doubleValue) being used in many other places.
[Message sent by forum member 'phenderson' (phenderson)]

http://forums.java.net/jive/thread.jspa?messageID=251885