Groups > Weblogic > WebLogic Webservices > Weblogic 9.2 and BigDecimal




Weblogic 9.2 and BigDecimal

Weblogic 9.2 and BigDecimal
Wed, 21 Nov 2007 07:55:17 -080
Hi All,

We are currently attempting to migrate our application from Weblogic 8.1 to
Weblogic 9.2

We have an autoType ANT task that generates a lot of code for us, for the
service that worked fine in 8.1 (and Java 1.4). The code generation is based of
a schema, so,

<xsd:complexType name="Adjustment">
<xsd:sequence>
<xsd:element name="amount"            type="xsd:decimal"
minOccurs="1" maxOccurs="1" nillable="true" />
...
etc.

Unfortunately when we moved to 9.2 and Java 5, we found that BigDecimal is
outputting,

10000000 (ten million)

it is now outputting

1.0E7

which is breaking the clients at the other end which are not expecting an
exponent.

Whilst I know about the toPlainString() method in the BigDecimal I am unable to
make use of it because the code is autogenerated and I would rather not fiddle
with auto generated code.

Does anyone know of a way I can easily fix this without rewriting masses of
Post Reply
about | contact