Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2052

XWikiDocument.equals always returns false if a document is compared to itself

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1, 1.3 M1
    • Fix Version/s: 1.2.2, 1.3 M2
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      XWikiDocument.equals will always return false for a document compared to itself, because of the following : (XWikiDocument.java#1994)

      if (isMinorEdit() == doc.isMinorEdit()) {
      return false;
      }

        Attachments

          Activity

            People

            • Assignee:
              jerome Jerome Velociter
              Reporter:
              jerome Jerome Velociter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: