Stefan Egli created OAK-3471: -------------------------------- Summary: Avoid reflection in DocumentDiscoveryLiteServiceTest Key: OAK-3471 URL: https://issues.apache.org/jira/browse/OAK-3471 Project: Jackrabbit Oak Issue Type: Improvement Components: core Affects Versions: 1.3.7 Reporter: Stefan Egli Fix For: 1.3.8
[DocumentDiscoveryLiteServiceTest.setFinalStatic|https://github.com/apache/jackrabbit-oak/blob/f173e50b6a9540da4cd135d892c48ea621f30ebe/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentDiscoveryLiteServiceTest.java#L605] 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] -- This message was sent by Atlassian JIRA (v6.3.4#6332)