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

Avoid reflection in DocumentDiscoveryLiteServiceTest

    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 reschke

      Attachments

        1. OAK-3471.patch
          3 kB
          Stefan Egli

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: