[ http://issues.apache.org/jira/browse/JCR-468?page=comments#action_12417270 ]
Tobias Bocanegra commented on JCR-468: -------------------------------------- <spec> Two Item objects represent the same repository item if all the following are true: 1) Both objects were acquired through Session objects that were created by the same Repository object. 2) Both objects were acquired through Session objects bound to the same repository workspace. 3)The objects are either both Node objects or both Property objects. 4)If they are Node objects, they have the same correspondence identifier (see 3.10.2 Multiple Workspaces and Corresponding Nodes). 5)If they are Property objects they have identical names and their parent nodes have the same correspondence identifiers. </spec> however, point 2 and 4 are a bit contradicting, but 2 is stronger. so i assume the workspace must be taken into account then comparing the items. see also discussion on jcr283: https://jsr-283.dev.java.net/issues/show_bug.cgi?id=146 > Item.isSame() may return true for 2 nodes from different workspaces. > -------------------------------------------------------------------- > > Key: JCR-468 > URL: http://issues.apache.org/jira/browse/JCR-468 > Project: Jackrabbit > Type: Bug > Components: core > Versions: 1.0, 1.0.1, 1.1, 0.9 > Reporter: Tobias Bocanegra > Assignee: Stefan Guggisberg > > the code in ItemImpl.isSame() only compares the item id, but not the source > workspace. -- 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
