You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2017/04/18 09:51:41 UTC

[jira] [Updated] (PROTON-1441) Size calculation for lists and maps inside an array is incorrect using Data API

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

Robbie Gemmell updated PROTON-1441:
-----------------------------------
    Summary: Size calculation for lists and maps inside an array is incorrect using Data API  (was: Size calculation for lists is incorrect in Data API)

> Size calculation for lists and maps inside an array is incorrect using Data API
> -------------------------------------------------------------------------------
>
>                 Key: PROTON-1441
>                 URL: https://issues.apache.org/jira/browse/PROTON-1441
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: proton-j-0.18.0
>            Reporter: Rick Parker
>            Assignee: Rob Godfrey
>             Fix For: proton-j-0.19.0
>
>
> Whilst trying out the Data API I noticed that the serialised form was 8 bytes longer than expected, with all 8 trailing bytes zeros.  I believe I traced this to what looks to my eye like a typo in qpid-proton-j/proton-j/src/main/java/org/apache/qpid/proton/codec/impl/ListElement.java at line 86.  I believe this +=8 should be inside an else statement.  Looking at ArrayElement.java by comparison that seems to be the case at line 127.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org