Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1179

Use dedicated Path class for handling paths in Oak

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • core, jcr
    • None

    Description

      As discussed (for example here several times before using naked strings for paths is troublesome. OAK-1168 and OAK-1174 are only the latest of a long history of issues we suffered because of this.

      While wrapping the path and related entities into dedicated classes will add some overhead at first. It will OTOH clearly communicate the intend of what otherwise are just naked strings. In addition it will introduce a clear boundary for optimisations while in the string case these blur with the client code.

      I thus propose to introduce a dedicated class for paths in Oak. Such a class could serve as a container for the string, which is the lazily acted upon as required.

      Attachments

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: