Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 24157 invoked from network); 17 Oct 2005 08:46:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 08:46:37 -0000 Received: (qmail 53559 invoked by uid 500); 17 Oct 2005 08:46:15 -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 53519 invoked by uid 99); 17 Oct 2005 08:46:14 -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, 17 Oct 2005 01:46:13 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 60D10598 for ; Mon, 17 Oct 2005 10:45:52 +0200 (CEST) Message-ID: <1446228684.1129538752395.JavaMail.jira@ajax.apache.org> Date: Mon, 17 Oct 2005 10:45:52 +0200 (CEST) From: "Michael Watzek (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-175) JPOX fails when a query calls String.indexOf In-Reply-To: <537439561.1128613787863.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-175?page=all ] Michael Watzek updated JDO-175: ------------------------------- Component: tck20 Component set to tck20. > JPOX fails when a query calls String.indexOf > -------------------------------------------- > > Key: JDO-175 > URL: http://issues.apache.org/jira/browse/JDO-175 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Michael Watzek > Assignee: Erik Bengtson > > JPOX fails when a query calls String.indexOf. This bug may be reproduced applying patch JDO-158. The following query throws an exception: > SELECT FROM org.apache.jdo.tck.pc.company.Person WHERE firstname.indexOf('First') == 4 > javax.jdo.JDOUserException: String.indexOf() can only be compared >= 0 > at org.jpox.store.expression.IndexOfExpression.toStatementText(IndexOfExpression.java:60) > at org.jpox.store.StatementText.append(StatementText.java:138) > at org.jpox.store.expression.ScalarExpression.(ScalarExpression.java:265) > at org.jpox.store.expression.BooleanExpression.(BooleanExpression.java:47) > at org.jpox.store.expression.NumericExpression.eq(NumericExpression.java:63) > at org.jpox.store.query.JDOQLQuery$Compiler.compileEqualityExpression(JDOQLQuery.java:1105) > at org.jpox.store.query.JDOQLQuery$Compiler.compileAndExpression(JDOQLQuery.java:1087) > at org.jpox.store.query.JDOQLQuery$Compiler.compileExclusiveOrExpression(JDOQLQuery.java:1075) > at org.jpox.store.query.JDOQLQuery$Compiler.compileInclusiveOrExpression(JDOQLQuery.java:1063) > at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalAndExpression(JDOQLQuery.java:1051) > at org.jpox.store.query.JDOQLQuery$Compiler.compileConditionalOrExpression(JDOQLQuery.java:1033) > at org.jpox.store.query.JDOQLQuery$Compiler.compileExpression(JDOQLQuery.java:1010) > at org.jpox.store.query.JDOQLQuery$Compiler.compileQueryStatement(JDOQLQuery.java:888) > at org.jpox.store.query.JDOQLQuery.compile(JDOQLQuery.java:566) > at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:636) > at org.jpox.store.query.Query.executeWithMap(Query.java:891) > at org.jpox.store.query.Query.executeWithArray(Query.java:871) > at org.jpox.store.query.Query.execute(Query.java:803) > at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:639) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:559) > at org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:535) > at org.apache.jdo.tck.query.jdoql.methods.SupportedStringMethods.executeQuery(SupportedStringMethods.java:274) > at org.apache.jdo.tck.query.jdoql.methods.SupportedStringMethods.testIndexOfString(SupportedStringMethods.java:223) > 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