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/branches/2.0.x@932771 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
32a6052ac7
commit
3b15af9b8d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue