[ https://issues.apache.org/jira/browse/TINKERPOP-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen mallette closed TINKERPOP-1527. --------------------------------------- Resolution: Fixed removed 3.3.0 as the "fix" version or else it will cause trouble when generating release notes. not sure if this is something that will be a concern at some point in the future. like we fix something in 3.2.x that doesnt' go forward to 3.3.x for some reason. oh well. guess we'll worry about that when it happens. > Do not override registered strategies in TraversalStrategies.GlobalCache > ------------------------------------------------------------------------ > > Key: TINKERPOP-1527 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1527 > Project: TinkerPop > Issue Type: Improvement > Components: process > Affects Versions: 3.2.3 > Reporter: Marko A. Rodriguez > Assignee: Marko A. Rodriguez > Fix For: 3.2.4 > > > This may be a non-issue (need to check), but we currently do this in every > {{Graph}} (and {{GraphComputer}}) class. > {code} > static { > TraversalStrategies.GlobalCache.registerStrategies(TinkerGraph.class, > TraversalStrategies.GlobalCache.getStrategies(Graph.class).clone().addStrategies(TinkerGraphStepStrategy.instance())); > } > {code} > If this static code is loaded every time a {{Graph}} instance is created, > then manually tweaked strategy registrations get overwritten. If this is the > case, then we should do: > {code} > static { > > TraversalStrategies.GlobalCache.registerStrategiesIfNotPresent(TinkerGraph.class,TraversalStrategies.GlobalCache.getStrategies(Graph.class).clone().addStrategies(TinkerGraphStepStrategy.instance())); > } > {code} > That is, add a {{registerIfNotPresent()}} method. -- This message was sent by Atlassian JIRA (v6.3.4#6332)