mirror of https://github.com/apache/openjpa.git
OPENJPA-1569 @Strategy triggers an InvalidStateException for fields which are declared as Java interfaces. Contributed by Jerry Carter.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@932720 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
53325aed75
commit
33e8df53bd
|
@ -156,7 +156,8 @@ public class JavaTypes {
|
|||
return CALENDAR;
|
||||
|
||||
if (type.isInterface()) {
|
||||
if (type == Serializable.class)
|
||||
//if (type == Serializable.class)
|
||||
if (Serializable.class.isAssignableFrom(type))
|
||||
return OBJECT;
|
||||
return PC_UNTYPED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue