ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (IGNITE-3892) BinaryWriterExImpl.doWriteClass is incorrect
Date Wed, 21 Sep 2016 23:07:20 GMT

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

Valentin Kulichenko reassigned IGNITE-3892:
-------------------------------------------

    Assignee: Valentin Kulichenko

> BinaryWriterExImpl.doWriteClass is incorrect
> --------------------------------------------
>
>                 Key: IGNITE-3892
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3892
>             Project: Ignite
>          Issue Type: Bug
>          Components: binary
>    Affects Versions: 1.7
>            Reporter: Valentin Kulichenko
>            Assignee: Valentin Kulichenko
>            Priority: Critical
>             Fix For: 1.8
>
>
> Here is the problematic code:
> {code}
> if (desc.registered())
>     out.unsafeWriteInt(desc.typeId());
> else {
>     out.unsafeWriteInt(GridBinaryMarshaller.UNREGISTERED_TYPE_ID);
>     doWriteString(val.getClass().getName());
> }
> {code}
> If class is not registered, {{val.getClass().getName()}} is written. But {{val}} is already
a {{Class}} instance, so it should be {{val.getName()}}.
> Need to create a test and fix.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message