mirror of https://github.com/apache/openjpa.git
OPENJPA-1143 fix build error that only occurred on IBM SDK 5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e72c186ef1
commit
3f15ecde4d
|
@ -249,7 +249,7 @@ public class SubqueryImpl<T> extends ExpressionImpl<T> implements Subquery<T> {
|
|||
// should be the class metadata of the collection element
|
||||
private ClassMetaData getCandidate() {
|
||||
RootImpl<?> root = (RootImpl<?>)getRoot();
|
||||
RootImpl<?> correlatedRoot = (RootImpl<?>)root.getCorrelatedParent();
|
||||
PathImpl<?, ?> correlatedRoot = root.getCorrelatedParent();
|
||||
if (correlatedRoot != null && root.getJoins() != null) {
|
||||
Join<?,?> join = root.getJoins().iterator().next();
|
||||
FieldMetaData fmd = ((Members.Member<?, ?>)join.getAttribute()).fmd;
|
||||
|
|
Loading…
Reference in New Issue