openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r932771 - /openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java
Date Sat, 10 Apr 2010 17:40:23 GMT
Author: dwoods
Date: Sat Apr 10 17:40:23 2010
New Revision: 932771

URL: http://svn.apache.org/viewvc?rev=932771&view=rev
Log:
OPENJPA-1569 @Strategy triggers an InvalidStateException for fields which are declared as
Java interfaces.  Contributed by Jerry Carter.

Modified:
    openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java

Modified: openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java?rev=932771&r1=932770&r2=932771&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java
(original)
+++ openjpa/branches/2.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java
Sat Apr 10 17:40:23 2010
@@ -156,7 +156,7 @@ public class JavaTypes {
             return CALENDAR;
 
         if (type.isInterface()) {
-            if (type == Serializable.class)
+            if (Serializable.class.isAssignableFrom(type))
                 return OBJECT;
             return PC_UNTYPED;
         }



Mime
View raw message