[ https://issues.apache.org/jira/browse/GEODE-6290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749374#comment-16749374 ]
ASF subversion and git services commented on GEODE-6290: -------------------------------------------------------- Commit 8d97b01293b54f18526824cee5c4776b5a6df066 in geode's branch refs/heads/develop from Darrel Schneider [ https://gitbox.apache.org/repos/asf?p=geode.git;h=8d97b01 ] GEODE-6290: change PdxInstance.equals for empty class name (#3091) PdxInstance.equals will only act as if an instance has a field with the default value if the class name is not empty. If the class name is empty it will now require that both instances have all the same identity fields. If the class name is empty then neverDeserialize will be called automatically. > PdxInstance with an empty string as class name should not support class > versioning > ---------------------------------------------------------------------------------- > > Key: GEODE-6290 > URL: https://issues.apache.org/jira/browse/GEODE-6290 > Project: Geode > Issue Type: Bug > Components: serialization > Reporter: Darrel Schneider > Assignee: Darrel Schneider > Priority: Major > Labels: pull-request-available > Time Spent: 1h > Remaining Estimate: 0h > > Currently if you create a PdxInstanceFactory with the empty string as the > class name then the PdxInstances it creates support class versioning. Since > the empty string is not a class, these PdxInstances should not support class > versioning. The only place this shows up is in PdxInstance.equal which allows > two instances with different identity fields to still be equal. It does this > if the one that has the identity field has the default value for it. > What should happen if you have two PdxInstances with the class name "", is > that they are only equal if the have all the same identity fields. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)