From 3f15ecde4d8702353f8046d0f522f489de227c03 Mon Sep 17 00:00:00 2001 From: Donald Woods Date: Thu, 25 Jun 2009 15:08:29 +0000 Subject: [PATCH] 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 --- .../org/apache/openjpa/persistence/criteria/SubqueryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/SubqueryImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/SubqueryImpl.java index 0c3ebbc1f..878c1cf26 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/SubqueryImpl.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/criteria/SubqueryImpl.java @@ -249,7 +249,7 @@ public class SubqueryImpl extends ExpressionImpl implements Subquery { // 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;