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:
Donald Woods 2009-06-25 15:08:29 +00:00
parent e72c186ef1
commit 3f15ecde4d
1 changed files with 1 additions and 1 deletions

View File

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