cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
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 GMT
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;
     }
 }



Mime
View raw message