Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 4862 invoked from network); 23 Aug 2009 14:35:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Aug 2009 14:35:21 -0000 Received: (qmail 30766 invoked by uid 500); 23 Aug 2009 14:35:43 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 30673 invoked by uid 500); 23 Aug 2009 14:35:42 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 30664 invoked by uid 99); 23 Aug 2009 14:35:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 14:35:42 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 14:35:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4C2D42388900; Sun, 23 Aug 2009 14:35:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r806982 - /cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java Date: Sun, 23 Aug 2009 14:35:21 -0000 To: commits@cxf.apache.org From: bimargulies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090823143521.4C2D42388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bimargulies Date: Sun Aug 23 14:35:20 2009 New Revision: 806982 URL: http://svn.apache.org/viewvc?rev=806982&view=rev Log: Put the special cases back in DefaultServiceConfiguration. Modified: cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java Modified: cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java?rev=806982&r1=806981&r2=806982&view=diff ============================================================================== --- cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java (original) +++ cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java Sun Aug 23 14:35:20 2009 @@ -298,6 +298,11 @@ return Long.valueOf(miString, 10); } } + // If no explicit spec and an array of bytes, default to unbounded. + if (mpi.getTypeClass() != null && mpi.getTypeClass().isArray() + && !Byte.TYPE.equals(mpi.getTypeClass().getComponentType())) { + return Long.MAX_VALUE; + } return null; } @@ -306,6 +311,11 @@ if (miString != null) { return Long.valueOf(miString, 10); } + // If no explicit spec and not a primitive type (i.e. mappable to null) + // set to 0. + if (mpi.getTypeClass() != null && !mpi.getTypeClass().isPrimitive()) { + return Long.valueOf(0); + } return null; } }