Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 24326 invoked from network); 4 Dec 2008 14:50:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2008 14:50:41 -0000 Received: (qmail 63615 invoked by uid 500); 4 Dec 2008 14:50:47 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 63534 invoked by uid 500); 4 Dec 2008 14:50:46 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 63523 invoked by uid 99); 4 Dec 2008 14:50:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 06:50:46 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 14:49:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5188E234C2D8 for ; Thu, 4 Dec 2008 06:49:44 -0800 (PST) Message-ID: <357352409.1228402184332.JavaMail.jira@brutus> Date: Thu, 4 Dec 2008 06:49:44 -0800 (PST) From: "Heinz Pferschy (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-4166) MIN_VALUEs for byte, short, int and long are used in corresponding wrapper classes to indicate null values. The nillable attribute should be used to indicate null values In-Reply-To: <161618277.1228402064189.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Heinz Pferschy updated AXIS2-4166: ---------------------------------- Description: The MIN_VALUEs for byte, short, int and long are used in corresponding wrapper classes to indicate null values. Therefore it is not possible to transport these MIN_VALUEs via SOAP. E.g. It is not possible to use the value -128 for a byte Example: ------------- If the type in WSDL is defined as the following modification of the generated source is necessary to allow serialization of Long.MIN_VALUE //Heinz Pferschy: bug fix to allow Long.MIN_VALUE // if (localLongValue==java.lang.Long.MIN_VALUE) { // // throw new org.apache.axis2.databinding.ADBException ("property value cannot be null!!"); // // } // else { xmlWriter.writeCharacters (org.apache.axis2.databinding.utils.ConverterUtil.convertToString (localLongValue) ); // } This bug is related to AXIS2-1272. The provided fix shouldn't use MIN_VALUEs for null values. The nillable attribute should be used to indicate null values was: The MIN_VALUEs for byte, short, int and long are used in corresponding wrapper classes to indicate null values. Therefore it is not possible to transport these MIN_VALUEs via SOAP. E.g. It is not possible to use the value -127 for a byte Example: ------------- If the type in WSDL is defined as the following modification of the generated source is necessary to allow serialization of Long.MIN_VALUE //Heinz Pferschy: bug fix to allow Long.MIN_VALUE // if (localLongValue==java.lang.Long.MIN_VALUE) { // // throw new org.apache.axis2.databinding.ADBException ("property value cannot be null!!"); // // } // else { xmlWriter.writeCharacters (org.apache.axis2.databinding.utils.ConverterUtil.convertToString (localLongValue) ); // } This bug is related to AXIS2-1272. The provided fix shouldn't use MIN_VALUEs for null values. The nillable attribute should be used to indicate null values > MIN_VALUEs for byte, short, int and long are used in corresponding wrapper classes to indicate null values. The nillable attribute should be used to indicate null values > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-4166 > URL: https://issues.apache.org/jira/browse/AXIS2-4166 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: 1.4.1, 1.3 > Reporter: Heinz Pferschy > > The MIN_VALUEs for byte, short, int and long are used in corresponding wrapper classes to indicate null values. Therefore it is not possible to transport these MIN_VALUEs via SOAP. > E.g. It is not possible to use the value -128 for a byte > Example: > ------------- > If the type in WSDL is defined as > > > > the following modification of the generated source is necessary to allow serialization of Long.MIN_VALUE > //Heinz Pferschy: bug fix to allow Long.MIN_VALUE > // if (localLongValue==java.lang.Long.MIN_VALUE) { > // > // throw new org.apache.axis2.databinding.ADBException ("property value cannot be null!!"); > // > // } > // else { > xmlWriter.writeCharacters (org.apache.axis2.databinding.utils.ConverterUtil.convertToString (localLongValue) ); > // } > This bug is related to AXIS2-1272. > The provided fix shouldn't use MIN_VALUEs for null values. The nillable attribute should be used to indicate null values -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org