You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2015/10/15 12:12:11 UTC

[jira] [Closed] (OAK-3471) Avoid reflection in DocumentDiscoveryLiteServiceTest

     [ https://issues.apache.org/jira/browse/OAK-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Giannella closed OAK-3471.
---------------------------------

Bulk close for 1.3.8

> 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
>            Assignee: Stefan Egli
>             Fix For: 1.3.8
>
>         Attachments: OAK-3471.patch
>
>
> [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)