geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XBEAN-278) Blueprint Namespace Handler improperly parsed flat-collections
Date Mon, 23 Feb 2015 19:59:11 GMT

    [ https://issues.apache.org/jira/browse/XBEAN-278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333732#comment-14333732
] 

ASF GitHub Bot commented on XBEAN-278:
--------------------------------------

GitHub user dkulp opened a pull request:

    https://github.com/apache/geronimo-xbean/pull/10

    [XBEAN-278, XBEAN-279] Fix problems with Blueprint XBeanNamespaceHandler...

    ... related to flat collections and PropertyEditors
    
    Couple of notes:
    1) This has a dependency on a snapshot version of blueprint-noosgi.   I'll work on a release
of that very shortly.
    
    2) The reason for blueprint-noosgi is to actually have blueprint create instances of some
of the beans to make sure that not only are they parsed correctly, the resulting blueprint
container can create the beans.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dkulp/geronimo-xbean trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/geronimo-xbean/pull/10.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #10
    
----
commit 70b81d6f29303c1303eec3b2a21e9df8e7b2a690
Author: Daniel Kulp <dkulp@apache.org>
Date:   2015-02-23T19:54:17Z

    [XBEAN-278, XBEAN-279] Fix problems with Blueprint XBeanNamespaceHandler related to flat
collections and PropertyEditors

----


> Blueprint Namespace Handler improperly parsed flat-collections
> --------------------------------------------------------------
>
>                 Key: XBEAN-278
>                 URL: https://issues.apache.org/jira/browse/XBEAN-278
>             Project: XBean
>          Issue Type: Bug
>    Affects Versions: 4.1
>            Reporter: Daniel Kulp
>
> When parsing a flat collections, the fist item is processed correctly creating the MutableColectionMetadata
and setting the childeMetadata to the listMeta which is then added to the bean.
> For subsequent items, item is added to the list correctly.  However, the childeMetadata
remains null (which is likely proper).  However, at the end of the 'if/else' chain in XBeanNamespaceHandler,
if childMeta is null, it creates another childMeta with the "value" of the element (likely
an empty string).   This causes beans to fail to be created.
> Patch coming soon.



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

Mime
View raw message