You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Diane Hardman (Jira)" <ji...@apache.org> on 2020/03/02 20:55:00 UTC

[jira] [Resolved] (GEODE-7694) PdxType comparison should favor typeId rather than class name

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

Diane Hardman resolved GEODE-7694.
----------------------------------
    Fix Version/s: 1.12.0
       Resolution: Fixed

> PdxType comparison should favor typeId rather than class name
> -------------------------------------------------------------
>
>                 Key: GEODE-7694
>                 URL: https://issues.apache.org/jira/browse/GEODE-7694
>             Project: Geode
>          Issue Type: Improvement
>          Components: native client
>            Reporter: Blake Bender
>            Priority: Major
>             Fix For: 1.12.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The `operator<` method of PdxType in the native client simply compares the class names, which is incorrect and leads to the fact that, in NC, you cannot currently have two separate PDX types with the same class name.  The comparison should favor type ID first, then if both type IDs are 0 (true for local regions), fall back to class name.  This will still fail for local regions in the scenario where class names are the same, but it's much, much better than we have now.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)