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

Avoid reflection in DocumentDiscoveryLiteServiceTest

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.7
    • 1.3.8, 1.4
    • core
    • None

    Description

      DocumentDiscoveryLiteServiceTest.setFinalStatic uses reflection to set a private static field. This was a very hacky way to avoid having to refactor ClusterNodeInfo and move forward with discovery-lite. To avoid unmaintainability, this should be replaced with a better mechanism however.
      /cc Julian Reschke

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stefanegli Stefan Egli
            stefanegli Stefan Egli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment