mirror of https://github.com/apache/openjpa.git
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:
parent
3f82b8aec0
commit
df43989689
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue