Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 288A0100C8 for ; Sat, 4 May 2013 19:40:19 +0000 (UTC) Received: (qmail 39093 invoked by uid 500); 4 May 2013 19:40:17 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 38920 invoked by uid 500); 4 May 2013 19:40:17 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 38693 invoked by uid 99); 4 May 2013 19:40:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 May 2013 19:40:17 +0000 Date: Sat, 4 May 2013 19:40:17 +0000 (UTC) From: "Shameera Rathnayaka (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AXIS2-5395) BigDecimal converted as double in ConverterUtil MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649149#comment-13649149 ] Shameera Rathnayaka edited comment on AXIS2-5395 at 5/4/13 7:39 PM: -------------------------------------------------------------------- This has been fixed in trunk. AXIS2-5331 was (Author: shameera): This has been fixed in trunk. AXIS2-5395 > BigDecimal converted as double in ConverterUtil > ----------------------------------------------- > > Key: AXIS2-5395 > URL: https://issues.apache.org/jira/browse/AXIS2-5395 > Project: Axis2 > Issue Type: Bug > Components: adb, databinding > Affects Versions: 1.6.1, 1.6.2 > Environment: All > Reporter: serenne > Priority: Minor > Fix For: 1.6.3 > > > Big Decimal are treated as double in org.apache.axis2.databinding.utils.converterUtil.java as no proto exists taking a BigDecimal as argument. > This leads to loosing precision in the value in the xml content. We noticed that since more than one year (as we use 14 digits for some currency change) so, we use our own patched version : > in org.apache.axis2.databinding.utils.converterUtil.java add a new method : > public static String convertToString(BigDecimal o) { > return o.toPlainString(); > } > This solved the problem. Could be enough, but we have to patch again the Converterutil class at each update to the latest version.... > So if something like that could be introduced in next versions ... could be nice ! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org