Monday, February 13, 2012

[Resolved] Use the BigDecimal toPlainString() method explicitly when deriving a string value (WAS Upgrade)

This is a short note for my WAS upgrade project V6.0 to V7.0

Recommendation by the WebSphere Application Migration Tool:
Use the BigDecimal toPlainString() method explicitly when deriving a string value


The behavior of the method toString() in BigDecimal is changed from J2SE 1.4 to 1.5

Java 1.4.2

 StringtoString()
          Returns the string representation of this BigDecimal.



Java 1.5

 StringtoString()
          Returns the string representation of this BigDecimal, using scientific notation if an exponent is needed.

Reference:
Java 1.4.2: http://docs.oracle.com/javase/1.4.2/docs/api/java/math/BigDecimal.html
Jave 1.5: http://docs.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html

No comments:

Post a Comment