#41 proper null conversion for \\\"proxy mappings\\\"

closed
None
1
2006-10-16
2006-04-17
Matt Benson
No

There may be instances in which a converter knows how
to convert a null source value to some non-null target
value. Dozer cannot currently handle this.

Additionally, where you have a class mapping of the
following type:

<mapping>
<class-a>ClassA</class-a>
<class-b>ClassB</class-b>
<field>
<a>this</b>
<b>bComponent</b>
</field>
</mapping>

i.e. where the only field mapping present is a
self-mapping, Dozer should be able to execute this
mapping (if further research does not prove this to be
unfeasible).

Discussion

  • Matt Benson

    Matt Benson - 2006-04-17
    • assigned_to: nobody --> orangeherbert
     
  • Matt Benson

    Matt Benson - 2006-04-18

    Logged In: YES
    user_id=120761

    dunno if you're watching these, Franz... but this is working
    albeit with some ugly passing-around of the source class in
    the 2.1 sandbox branch.

     
  • Matt Benson

    Matt Benson - 2006-04-21
    • status: open --> pending
     
  • Matt Benson

    Matt Benson - 2006-04-24

    Logged In: YES
    user_id=120761

    Changed summary. A proxy mapping is one for which wildcard
    is false (by inheritance or explicitly) and the only field
    mapping is a self-mapping. Nulls should be permitted and
    properly handled in all manifestations of this use case.

     
  • Matt Benson

    Matt Benson - 2006-04-24
    • summary: allow null source value to be converted --> proper null conversion for "proxy mappings"
    • status: pending --> open
     
  • Matt Benson

    Matt Benson - 2006-04-27

    Logged In: YES
    user_id=120761

    this change introduced performance issues in Dozer and is on
    indefinite hold.

     
  • Matt Benson

    Matt Benson - 2006-04-27
    • priority: 5 --> 1
     
  • Matt Tierney

    Matt Tierney - 2006-10-02
    • status: open --> pending
     
  • Matt Tierney

    Matt Tierney - 2006-10-02

    Logged In: YES
    user_id=1236069

    I believe this may be resolved in 2.4, but I am not for
    sure. We removed reflection caching that was causing rare
    proxy issues. All existing unit tests are green after
    removing the caching. If this is still an issue, it may
    be easier to resolve in the 2.4 code base.

     
  • Matt Tierney

    Matt Tierney - 2006-10-14
    • assigned_to: orangeherbert --> mhtierney
     
  • Matt Tierney

    Matt Tierney - 2006-10-14

    Logged In: YES
    user_id=1236069

    assignment

     
  • Matt Tierney

    Matt Tierney - 2006-10-16
    • summary: proper null conversion for "proxy mappings" --> proper null conversion for \"proxy mappings\"
     
  • Matt Tierney

    Matt Tierney - 2006-10-16
    • summary: proper null conversion for \"proxy mappings\" --> proper null conversion for \\"proxy mappings\\"
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks