Uploaded image for project: '[Read Only] - Hippo Configuration Management'
  1. [Read Only] - Hippo Configuration Management
  2. HCM-241

Avoid object equality tests in JcrPath

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • None
    • Platform 171, Platform 173, Platform 174, Platform 175

    Description

      JcrPathImpl and JcrPathSegmentImpl currently do object-equality tests (==) to check for the root path and segment. This is vulnerable to subtle bugs if separate classloaders have created their own instances of the relevant constant values. The root singletons should be separate (anonymous) subclasses that respond to isRoot() differently than the common-case class.

      Attachments

        Activity

          People

            Unassigned Unassigned
            PCentgraf Peter Centgraf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: