pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Allman (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIVOT-547) Bug in JSON.java prevents the use of Element as a destination for data binding
Date Fri, 25 Jun 2010 04:51:50 GMT

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

Michael Allman updated PIVOT-547:
---------------------------------

    Attachment: xml_binding_fix.patch

Proposed fix

> Bug in JSON.java prevents the use of Element as a destination for data binding
> ------------------------------------------------------------------------------
>
>                 Key: PIVOT-547
>                 URL: https://issues.apache.org/jira/browse/PIVOT-547
>             Project: Pivot
>          Issue Type: Bug
>          Components: core-xml
>    Affects Versions: 1.5
>            Reporter: Michael Allman
>            Priority: Minor
>         Attachments: xml_binding_fix.patch
>
>
> A bug in the JSON.put method prevents using an Element instance as a destination for
data binding.  This issue arises because Element implements both the Dictionary and Sequence
interfaces.
> I've attached a proposed fix.  The approach I've taken is to test if the key can be parsed
into an int.  If not, it's assumed to be a Dictionary key.  This fixes the issue with Element
and should fix the issue for the more general case of any other class that implement Dictionary
and Sequence.
> Given that this is a bug, I've generated the patch against the 1.5.x branch.
> Cheers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message