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 797407CD4 for ; Sun, 13 Nov 2011 20:54:16 +0000 (UTC) Received: (qmail 83642 invoked by uid 500); 13 Nov 2011 20:54:15 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 83523 invoked by uid 500); 13 Nov 2011 20:54:15 -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 83512 invoked by uid 99); 13 Nov 2011 20:54:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 20:54:15 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 20:54:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 050F95987D for ; Sun, 13 Nov 2011 20:53:52 +0000 (UTC) Date: Sun, 13 Nov 2011 20:53:52 +0000 (UTC) From: "Vilnis Termanis (Created) (JIRA)" To: java-dev@axis.apache.org Message-ID: <739498001.25503.1321217632022.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AXIS2-5183) Null as first element in non-primitive array causes other array elements to be disregarded MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Null as first element in non-primitive array causes other array elements to be disregarded ------------------------------------------------------------------------------------------ Key: AXIS2-5183 URL: https://issues.apache.org/jira/browse/AXIS2-5183 Project: Axis2 Issue Type: Bug Components: adb, databinding Affects Versions: 1.6.1, 1.6.0 Reporter: Vilnis Termanis Procedure: 1) Create service function (e.g. POJO) which has an array parameter, e.g.: public static boolean testFunc(Integer[] integers) { if (integers != null) { System.out.println(integers.length); } else { System.out.println("null"); } } 2) Send request with null as first element, e.g.: 12 3) Send request with null as non-first element, e.g.: 12 Result: 2) Array of length 0 (i.e. null) received - WRONG 3) Array of length 3 received (1, null, 2, as expected) Reason: BeanUtil.java ignores non-null elements of an array if the first element is null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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