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

Remove org.apache.jackrabbit.oak.core from package-export

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10
    • core
    • None

    Description

      IMO the package org.apache.jackrabbit.oak.core is the implementation of the
      oak api and should therefore only be used internally. exporting that package
      in the maven-bundle-plugin configuration is from my point of view a major bug.
      if it's needed it indicates that the package contains classes that are misplaced.

      a quick search showed that the following references to the core package are present:

      oak-solr:

      • AbstractRoot used by
        > SolrBaseTest

      oak-jcr:

      • IdentifierManager used by
        > NodeImpl,
        > NodeDelegate,
        > SessionDelegate,
        > ChangeProcessor,
        > ImporterImpl
      • ImmutableRoot used by
        > ChangeProcessor
      • ImmutableTree used by
        > ChangeProcessor

      to me that indicates that the IdentifierManager should be moved to package
      space that is really public (API, SPI or plugins).

      as far as the ChangeProcessor is concerned it seems that this was itself a
      candidate for being moved from oak-jcr to oak-core.

      and finally the SolrTest: i think the test should be refactored to obtain the root from a regular OAK repository setup instead of relying on an specific implementation.

      Attachments

        1. OAK-950_2.patch
          41 kB
          Angela Schreiber
        2. OAK-950_3.patch
          49 kB
          Tommaso Teofili
        3. OAK-950.patch
          37 kB
          Angela Schreiber

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: