mirror of https://github.com/apache/openjpa.git
OPENJPA-1143: fix compiler error on IBM SDK5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
291f314242
commit
42f8667128
|
@ -227,7 +227,7 @@ public class SubqueryImpl<T> extends ExpressionImpl<T> implements Subquery<T> {
|
|||
(Members.SingularAttributeImpl<?,?>)((Joins.SingularJoin<?,?>)join).getMember();
|
||||
JoinType jt = join.getJoinType();
|
||||
FromImpl<?,?> root = null;
|
||||
if (parent instanceof RootImpl<?>) {
|
||||
if (parent instanceof RootImpl) {
|
||||
members.add(member);
|
||||
jts.add(jt);
|
||||
return (FromImpl<?,?>)parent;
|
||||
|
@ -305,8 +305,7 @@ public class SubqueryImpl<T> extends ExpressionImpl<T> implements Subquery<T> {
|
|||
}
|
||||
|
||||
RootImpl<?> root = (RootImpl<?>)getRoot();
|
||||
RootImpl<?> corrRoot = (RootImpl<?>)root.getCorrelatedPath();
|
||||
if (corrRoot != null && root.getJoins() != null) {
|
||||
if (root.getCorrelatedPath() != null && root.getJoins() != null) {
|
||||
FromImpl<?,?> join = (FromImpl<?,?>) root.getJoins().iterator().next();
|
||||
return getInnermostCandidate(join);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue