Issue Type: Bug Bug
Affects Versions: 4.5.8
Assignee: Roman Kovařík
Components: core
Created: 22/May/13 1:39 PM
Description:

Javadoc for ItemImpl.isSame says:

Returns true if this Item object (the Java object instance) represents the same actual workspace item as
the object otherItem.
Two Item objects represent the same workspace item if and only if all the following are true:

  • Both objects were acquired through Session objects that were created by the same Repository
    object.
  • Both objects were acquired through Session objects bound to the same repository workspace.
  • The objects are either both Node objects or both Property objects.
  • If they are Node objects, they have the same identifier.

But that's not fulfilled for DelegateNodeWrapped class, which calls ItemImpl.isSame():

public boolean isSame(Item otherItem) throws RepositoryException {
	...
        if (this == otherItem) {
            return true;
        }
        if (otherItem instanceof ItemImpl) {
            ...
        }
        return false;
    }
Fix Versions: 4.5.10
Project: Magnolia
Priority: Neutral Neutral
Reporter: Roman Kovařík
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to