From jdo-dev-return-3128-apmail-db-jdo-dev-archive=www.apache.org@db.apache.org Fri Feb 03 19:27:57 2006 Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 95133 invoked from network); 3 Feb 2006 19:27:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 19:27:56 -0000 Received: (qmail 54468 invoked by uid 500); 3 Feb 2006 19:27:51 -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 54373 invoked by uid 99); 3 Feb 2006 19:27:50 -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; Fri, 03 Feb 2006 11:27:49 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id EA213193 for ; Fri, 3 Feb 2006 20:27:13 +0100 (CET) Message-ID: <249174700.1138994833956.JavaMail.jira@ajax.apache.org> Date: Fri, 3 Feb 2006 20:27:13 +0100 (CET) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-241) JPOX returns wrong query result for non-extent queries. In-Reply-To: <1294227377.1134137409043.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-241?page=3Dall ] Craig Russell updated JDO-241: ------------------------------ Fix Version: JDO 2 rc1 Version: JDO 2 beta > JPOX returns wrong query result for non-extent queries. > ------------------------------------------------------- > > Key: JDO-241 > URL: http://issues.apache.org/jira/browse/JDO-241 > Project: JDO > Type: Bug > Components: tck20 > Versions: JDO 2 beta > Reporter: Michael Watzek > Assignee: Erik Bengtson > Fix For: JDO 2 rc1 > Attachments: JDO-241.patch > > Test case DistinctCandidateInstances fails because JPOX returns an empty = collection for the query below. The query uses a candidate collection. > 14:22:46,781 (main) DEBUG [org.apache.jdo.tck] - Executing JDO query: SEL= ECT FROM org.apache.jdo.tck.pc.company.Person > 14:22:46,796 (main) DEBUG [org.apache.jdo.tck] - Query result: [] > 14:22:46,812 (main) DEBUG [org.apache.jdo.tck] - Wrong query result:=20 > expected: [FullTimeEmployee(1, emp1Last, emp1First, born 10/Jun/1970, pho= ne {work=3D123456-1, home=3D1111}, hired 1/Jan/1999, weeklyhours 40.0, $200= 00.0), FullTimeEmployee(2, emp2Last, emp2First, born 22/Dec/1975, phone {wo= rk=3D123456-2, home=3D2222}, hired 1/Jul/2003, weeklyhours 40.0, $10000.0),= PartTimeEmployee(3, emp3Last, emp3First, born 5/Sep/1972, phone {work=3D12= 3456-3, home=3D3333}, hired 15/Aug/2002, weeklyhours 19.0, $15000.0), PartT= imeEmployee(4, emp4Last, emp4First, born 6/Sep/1973, phone {work=3D124456-3= , home=3D3343}, hired 15/Apr/2001, weeklyhours 0.0, $13000.0), FullTimeEmpl= oyee(5, emp5Last, emp5First, born 5/Jul/1962, phone {work=3D126456-3, home= =3D3363}, hired 15/Aug/1998, weeklyhours 0.0, $45000.0), FullTimeEmployee(1= , emp1Last, emp1First, born 10/Jun/1970, phone {work=3D123456-1, home=3D111= 1}, hired 1/Jan/1999, weeklyhours 40.0, $20000.0), FullTimeEmployee(2, emp2= Last, emp2First, born 22/Dec/1975, phone {work=3D123456-2, home=3D2222}, hi= red 1/Jul/2003, weeklyhours 40.0, $10000.0), PartTimeEmployee(3, emp3Last, = emp3First, born 5/Sep/1972, phone {work=3D123456-3, home=3D3333}, hired 15/= Aug/2002, weeklyhours 19.0, $15000.0), PartTimeEmployee(4, emp4Last, emp4Fi= rst, born 6/Sep/1973, phone {work=3D124456-3, home=3D3343}, hired 15/Apr/20= 01, weeklyhours 0.0, $13000.0), FullTimeEmployee(5, emp5Last, emp5First, bo= rn 5/Jul/1962, phone {work=3D126456-3, home=3D3363}, hired 15/Aug/1998, wee= klyhours 0.0, $45000.0)] > got: [] > 14:22:46,812 (main) INFO [org.apache.jdo.tck] - Exception during setUp o= r runtest:=20 > junit.framework.AssertionFailedError: Assertion A14.6.9-2 (DistintCandida= teInstances) failed:=20 > Wrong query result:=20 > expected: [FullTimeEmployee(1, emp1Last, emp1First, born 10/Jun/1970, pho= ne {work=3D123456-1, home=3D1111}, hired 1/Jan/1999, weeklyhours 40.0, $200= 00.0), FullTimeEmployee(2, emp2Last, emp2First, born 22/Dec/1975, phone {wo= rk=3D123456-2, home=3D2222}, hired 1/Jul/2003, weeklyhours 40.0, $10000.0),= PartTimeEmployee(3, emp3Last, emp3First, born 5/Sep/1972, phone {work=3D12= 3456-3, home=3D3333}, hired 15/Aug/2002, weeklyhours 19.0, $15000.0), PartT= imeEmployee(4, emp4Last, emp4First, born 6/Sep/1973, phone {work=3D124456-3= , home=3D3343}, hired 15/Apr/2001, weeklyhours 0.0, $13000.0), FullTimeEmpl= oyee(5, emp5Last, emp5First, born 5/Jul/1962, phone {work=3D126456-3, home= =3D3363}, hired 15/Aug/1998, weeklyhours 0.0, $45000.0), FullTimeEmployee(1= , emp1Last, emp1First, born 10/Jun/1970, phone {work=3D123456-1, home=3D111= 1}, hired 1/Jan/1999, weeklyhours 40.0, $20000.0), FullTimeEmployee(2, emp2= Last, emp2First, born 22/Dec/1975, phone {work=3D123456-2, home=3D2222}, hi= red 1/Jul/2003, weeklyhours 40.0, $10000.0), PartTimeEmployee(3, emp3Last, = emp3First, born 5/Sep/1972, phone {work=3D123456-3, home=3D3333}, hired 15/= Aug/2002, weeklyhours 19.0, $15000.0), PartTimeEmployee(4, emp4Last, emp4Fi= rst, born 6/Sep/1973, phone {work=3D124456-3, home=3D3343}, hired 15/Apr/20= 01, weeklyhours 0.0, $13000.0), FullTimeEmployee(5, emp5Last, emp5First, bo= rn 5/Jul/1962, phone {work=3D126456-3, home=3D3363}, hired 15/Aug/1998, wee= klyhours 0.0, $45000.0)] > got: [] > =09at junit.framework.Assert.fail(Assert.java:47) > =09at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:546) > =09at org.apache.jdo.tck.query.QueryTest.queryFailed(QueryTest.java:500) > =09at org.apache.jdo.tck.query.QueryTest.checkQueryResultWithoutOrder(Que= ryTest.java:485) > =09at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1189) > =09at org.apache.jdo.tck.query.QueryTest.executeJDOQuery(QueryTest.java:1= 057) > =09at org.apache.jdo.tck.query.result.DistinctCandidateInstances.testColl= ectionQueries(DistinctCandidateInstances.java:129) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:39) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25) > =09at java.lang.reflect.Method.invoke(Method.java:324) > =09at junit.framework.TestCase.runTest(TestCase.java:154) > =09at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204) > =09at junit.framework.TestResult$1.protect(TestResult.java:106) > =09at junit.framework.TestResult.runProtected(TestResult.java:124) > =09at junit.framework.TestResult.run(TestResult.java:109) > =09at junit.framework.TestCase.run(TestCase.java:118) > =09at junit.framework.TestSuite.runTest(TestSuite.java:208) > =09at junit.framework.TestSuite.run(TestSuite.java:203) > =09at junit.framework.TestSuite.runTest(TestSuite.java:208) > =09at junit.framework.TestSuite.run(TestSuite.java:203) > =09at junit.textui.TestRunner.doRun(TestRunner.java:116) > =09at junit.textui.TestRunner.doRun(TestRunner.java:109) > =09at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:= 120) > =09at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:9= 5) --=20 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