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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2.2, 1.3 M2
    • 1.2.1, 1.3 M1
    • {Unused} Core
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: