#122 Deep Index Custom Converter Problem

Dozer v4.4
closed
5
2008-12-11
2007-12-06
No

When trying to use a custom converter for a deep index mapping I get an error stating that "object is not an instance of declaring class" - which makes sense...that's why I'm trying to use a custom converter. If I remove the "Deep" index mapping and keep the have only a single index the custom converter is envoked and works fine. Here is a quick example.

this works and envokes the custom converter
<a>second.thirdArray[7]</a>

this works and envokes the custom converter
<a>secondArray[0].third</a>

this doesn't work and doesn't envoke the custom converter
<a>secondArray[0].thirdArray[7]</a>

I've attached an example of this. Let me know if you have any questions regarding this issue.

Discussion

  • Anonymous - 2007-12-06

    Test Source

     
  • Matt Tierney

    Matt Tierney - 2007-12-16

    Logged In: YES
    user_id=1236069
    Originator: NO

    I was able to reproduce this bug using the unit test that was submitted. Thanks for taking the time to put the test together. It will really help as we dig through the code. I spent some time investigating this and looking through the code, but it wasn't obvious what was causing it. I believe it is specific to deep index mapping in conjunction with the last element in the chain also being indexed. I am confident that it can be resolved, but it will take further investigation. I am planning on working on this over the next couple weeks and can push a minor release out to production with this in it.

     
  • Anonymous - 2008-01-22

    Logged In: YES
    user_id=1803910
    Originator: YES

    I was just wondering if you had made any progress on this issue. Thanks!

     
  • Anonymous - 2008-03-14

    Logged In: YES
    user_id=1803910
    Originator: YES

    any more updates on this issue?

     
  • dmitry (lv)

    dmitry (lv) - 2008-12-06
    • labels: --> Mapping Issue
    • milestone: --> 888638
    • assigned_to: nobody --> cchou
     
  • Chia-Chou Hung

    Chia-Chou Hung - 2008-12-11

    Hi Matthew,

    Thanks for pointing out the problem. We have investigated this issue and fixed it.

    Hi Mickael,

    Thank you very much for providing the patch. It helps a lot.

    Chia-Chou

     
  • Chia-Chou Hung

    Chia-Chou Hung - 2008-12-11
    • status: open --> closed
     
  • Chia-Chou Hung

    Chia-Chou Hung - 2008-12-11
    • milestone: 888638 --> Dozer v4.4
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks