David Leangen commented on FELIX-5666:

Thanks, [~bosschaert]. Yes, I think this issue is fixed, though I don't think 
that there is "complete coverage" of the Specifying interface in the Serializer 

I suppose we can just file issues as problems arise. wdyt? If that's ok, then I 
will close this issue.

Before that, though, would you mind just taking a look at the updates I did to 
the POM files (Converter, Serializer) to make sure they meet "Felix standards" 
(whatever those are)? I would appreciate your confirmation.

Sorry for bringing this up in here, but I kinda snuck in those changes as part 
of this work. :-)

> Serializer goes into infinite loop
> ----------------------------------
>                 Key: FELIX-5666
>                 URL: https://issues.apache.org/jira/browse/FELIX-5666
>             Project: Felix
>          Issue Type: Bug
>          Components: Converter
>            Reporter: David Leangen
>            Assignee: David Leangen
> I'm only guessing as to what the problem is, following some stepping through 
> the code. I could not find any similar existing test cases, but if the 
> following does not immediately click for [~bosschaert], I will try to add one.
> It appears that, when serializing an object to a "DTO-Type" object to a Map, 
> some kind of backing object is created.
> If the backing object contains a field that instantiates the same DTO, then 
> the loop gets created.
> Example:
> {code}
> public class MyDtoType {
>   public String id;
>   public MyDtoType( String anID ) {
>     id = anID;
>   }
>   public static MyDtoType error() {
>     return new MyDtoType( "ERROR" );
>   }
> }
> {code}
> It looks like the serializer keeps calling the error() method infinitely, but 
> I am not able to easily pinpoint where this happens.

This message was sent by Atlassian JIRA

Reply via email to