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:
Donald Woods 2010-04-10 13:51:51 +00:00
parent 53325aed75
commit 33e8df53bd
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}