Query type promotion fix.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-08-02 19:21:31 +00:00
parent 3f82b8aec0
commit df43989689
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ public class Filters {
public static Class promote(Class c1, Class c2) {
if (c1 == c2)
return c1;
if (c1 == Object.class)
return c2;
if (c2 == Object.class)
return c1;
Class w1 = wrap(c1);
Class w2 = wrap(c2);
if (w1 == w2)