[
https://issues.apache.org/jira/browse/SOLR-9485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15468319#comment-15468319
]
Pushkar Raste edited comment on SOLR-9485 at 9/6/16 7:46 PM:
-------------------------------------------------------------
May be adding a simple to {{instanceof}} check and either returning same object
or a copy of object should suffice.
was (Author: praste):
May be adding a simple to {{instanceof}} check and either returning same object
or a deep-copy of object should suffice.
> {{Indexfingerprint.fromObject()}} returns wrong values if object passed was
> itself of type IndexFingerprint.
> ------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-9485
> URL: https://issues.apache.org/jira/browse/SOLR-9485
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Pushkar Raste
> Priority: Minor
>
> {{Indexfingerprint.fromObject()}} assumes object sent it is type of {{Map}}.
> If it is of any other type, it simply sets {{maxVersionSpecified}} to
> {{Long.MAX_VALUE}} and all the other attributes to {{1}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]