cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1460111 - in /cayenne/main/trunk/framework: cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyUtils.java
Date Sat, 23 Mar 2013 07:45:54 GMT
Author: aadamchik
Date: Sat Mar 23 07:45:53 2013
New Revision: 1460111

URL: http://svn.apache.org/r1460111
Log:
CAY-1804  Serialisation of long[] type was not working correctly.

patch by      Kris Erik Schwerdt

Modified:
    cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyUtils.java

Modified: cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java?rev=1460111&r1=1460110&r2=1460111&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java
(original)
+++ cayenne/main/trunk/framework/cayenne-di-unpublished/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java
Sat Mar 23 07:45:53 2013
@@ -159,6 +159,9 @@ public class DefaultAdhocObjectFactory i
             else if ("int".equals(className)) {
                 return int[].class;
             }
+           else if ("long".equals(className)) {
+               return long[].class;
+           }
             else if ("short".equals(className)) {
                 return short[].class;
             }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyUtils.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyUtils.java?rev=1460111&r1=1460110&r2=1460111&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyUtils.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/PropertyUtils.java
Sat Mar 23 07:45:53 2013
@@ -276,6 +276,9 @@ public class PropertyUtils {
             else if ("int".equals(className)) {
                 return Integer.class;
             }
+            else if ("long".equals(className)) {
+                return Long.class;
+            }
             else if ("short".equals(className)) {
                 return Short.class;
             }
@@ -310,6 +313,9 @@ public class PropertyUtils {
             else if ("int".equals(className)) {
                 return Integer.valueOf(0);
             }
+           else if ("long".equals(className)) {
+               return Long.valueOf(0);
+           }
             else if ("short".equals(className)) {
                 return Short.valueOf((short) 0);
             }



Mime
View raw message