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

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Labels:
      None
    • Epic Link:
    • Processed by team:
      Pulsar
    • Sprint:
      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

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

              Dates

              Created:
              Updated:
              Resolved: