db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelle Caisse (JIRA)" <j...@apache.org>
Subject [jira] Created: (JDO-525) Department.getEmployees().contains() returns wrong answer
Date Fri, 07 Sep 2007 19:00:30 GMT
Department.getEmployees().contains() returns wrong answer

                 Key: JDO-525
                 URL: https://issues.apache.org/jira/browse/JDO-525
             Project: JDO
          Issue Type: Bug
          Components: tck2
    Affects Versions: JDO 2 maintenance release 1
            Reporter: Michelle Caisse
            Assignee: Andy Jefferson

A number of tests in the new configuration relationshipAllRelationships.conf give the following

Assertion A15-3.1 (Relationship1ToManyAllRelationships) failed: : Test aborted, precondition
is false; expected dept.getEmployees() to contain emp1
	at org.apache.jdo.tck.mapping.Relationship1ToManyAllRelationships.localSetUp(Relationship1ToManyAllRelationships.java:87)

dept1.getEmployees().contains(emp1) returns false, even though it is actually true. Print
statements showed that isEmpty() and size() return the correct answer. contains() returned
the correct answer after an invocation of dept2.getEmployees().

To reproduce, do:
maven  -Djdo.tck.cfglist=relationshipAllRelationships.conf runtck.jdori

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message