Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 44846 invoked from network); 26 Dec 2005 21:42:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Dec 2005 21:42:54 -0000 Received: (qmail 49378 invoked by uid 500); 26 Dec 2005 21:42:53 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 49367 invoked by uid 99); 26 Dec 2005 21:42:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2005 13:42:53 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 34639CB for ; Mon, 26 Dec 2005 22:42:32 +0100 (CET) Message-ID: <30713289.1135633352213.JavaMail.jira@ajax.apache.org> Date: Mon, 26 Dec 2005 22:42:32 +0100 (CET) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Resolved: (JDO-194) JPOX does not support implicit variables. In-Reply-To: <842177224.1130429815650.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-194?page=all ] Michael Bouschen resolved JDO-194: ---------------------------------- Resolution: Fixed I changed the variable names in test classes MixedVariables and VariablesAndFields to avoid a conflict modulo capitalization with class names. I found and fixed the same issue in the following test classes: - org.apache.jdo.tck.query.delete.DeleteQueryElements - org.apache.jdo.tck.query.api.SingleStringQuery - org.apache.jdo.tck.query.api.ChangeQuery - org.apache.jdo.tck.query.jdoql.keywords.SingleString - org.apache.jdo.tck.query.result.NPEInResultExpr - org.apache.jdo.tck.query.result.VariableInResult - org.apache.jdo.tck.query.result.ResultExpressions.java - org.apache.jdo.tck.query.result.DistinctCandidateInstances > JPOX does not support implicit variables. > ----------------------------------------- > > Key: JDO-194 > URL: http://issues.apache.org/jira/browse/JDO-194 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Michael Watzek > Assignee: Michael Bouschen > > JPOX throws an exception executing queries having implicit parameters (see below). The bug may be reproduced executing test case org.apache.jdo.tck.query.jdoql.variables.VariablesAndFields. > Query: SELECT FROM org.apache.jdo.tck.pc.company.Employee WHERE team.contains(employee) & employee.firstname == 'emp1First' > org.jpox.store.exceptions.NoSuchPersistentFieldException: Field "employee" does not exist in org.apache.jdo.tck.pc.company.Person or is not persistent > at org.jpox.store.rdbms.table.ClassTable.getFieldMapping(ClassTable.java:1790) > at org.jpox.store.expression.TableExpression.newFieldExpression(TableExpression.java:183) > at org.jpox.store.query.JDOQLQuery$Compiler.compileIdentifier(JDOQLQuery.java:1534) > at org.jpox.store.query.JDOQLQuery$Compiler.compilePrimary(JDOQLQuery.java:1299) > at org.jpox.store.query.JDOQLQuery$Compiler.compileUnaryExpressionNotPlusMinus(JDOQLQuery.java:1245) > at org.jpox.store.query.JDOQLQuery$Compiler.compileUnaryExpression(JDOQLQuery.java:1226) > at org.jpox.store.query.JDOQLQuery$Compiler.compileMultiplicativeExpression(JDOQLQuery.java:1179) > at org.jpox.store.query.JDOQLQuery$Compiler.compileAdditiveExpression(JDOQLQuery.java:1156) > at org.jpox.store.query.JDOQLQuery$Compiler.compileRelationalExpression(JDOQLQuery.java:1125) > at org.jpox.store.query.JDOQLQuery$Compiler.compileEqualityExpression(JDOQLQuery.java:1102) > at org.jpox.store.query.JDOQLQuery$Compiler.compileAndExpression(JDOQLQuery.java:1090) > at org.jpox.store.query.JDOQLQuery$Compiler.compileExclusiveOrExpression(JDOQLQuery.java:1078) > at org.jpox.store.query.JDOQLQuery$Compiler.compileInclusiveOrExpression(JDOQLQuery.java:1066) > at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalAndExpression(JDOQLQuery.java:1054) > at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalOrExpression(JDOQLQuery.java:1036) > at org.jpox.store.query.JDOQLQuery$Compiler.compileExpression(JDOQLQuery.java:1013) > at org.jpox.store.query.JDOQLQuery$Compiler.compilePrimary(JDOQLQuery.java:1346) > at org.jpox.store.query.JDOQLQuery$Compiler.compileUnaryExpressionNotPlusMinus(JDOQLQuery.java:1245) > at org.jpox.store.query.JDOQLQuery$Compiler.compileUnaryExpression(JDOQLQuery.java:1226) > at org.jpox.store.query.JDOQLQuery$Compiler.compileMultiplicativeExpression(JDOQLQuery.java:1179) > at org.jpox.store.query.JDOQLQuery$Compiler.compileAdditiveExpression(JDOQLQuery.java:1156) > at org.jpox.store.query.JDOQLQuery$Compiler.compileRelationalExpression(JDOQLQuery.java:1125) > at org.jpox.store.query.JDOQLQuery$Compiler.compileEqualityExpression(JDOQLQuery.java:1102) > at org.jpox.store.query.JDOQLQuery$Compiler.compileAndExpression(JDOQLQuery.java:1090) > at org.jpox.store.query.JDOQLQuery$Compiler.compileExclusiveOrExpression(JDOQLQuery.java:1078) > at org.jpox.store.query.JDOQLQuery$Compiler.compileInclusiveOrExpression(JDOQLQuery.java:1066) > at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalAndExpression(JDOQLQuery.java:1054) > at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalOrExpression(JDOQLQuery.java:1036) > at org.jpox.store.query.JDOQLQuery$Compiler.compileExpression(JDOQLQuery.java:1013) > at org.jpox.store.query.JDOQLQuery$Compiler.compileQueryStatement(JDOQLQuery.java:891) > at org.jpox.store.query.JDOQLQuery.compile(JDOQLQuery.java:569) > at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:639) > at org.jpox.store.query.Query.executeWithMap(Query.java:907) > at org.jpox.store.query.Query.executeWithArray(Query.java:887) > at org.jpox.store.query.Query.execute(Query.java:819) > at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:706) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:625) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:601) > at org.apache.jdo.tck.query.jdoql.variables.VariablesAndFields.testPositive(VariablesAndFields.java:148) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at junit.framework.TestCase.runTest(TestCase.java:154) > at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at junit.textui.TestRunner.doRun(TestRunner.java:116) > at junit.textui.TestRunner.doRun(TestRunner.java:109) > at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120) > at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira