The xmlserializer generates duplicate properties for inheritance chains
To reproduce:
public interface IMyOtherMessage : IMyMessage
public interface IMyMessage : IMyBaseMessage
public interface IMyBaseMessage : IMessage
prop BaseProp
The bug was reported for 2.5, create a test to see if you can repo on master
Don't think the issue is really in the xml serializer, but is instead in the generated classes xxxx_Impl.xxxx created for the interfaces. We have hit this in 2.0 also.
Thanks Myles, yes that makes sense. Did this cause any problems for you?
http://andreasohlund.net
http://twitter.com/andreasohlund
Date: Mon, 29 Aug 2011 20:36:51 -0700 From: [email protected] To: [email protected] Subject: Re: [NServiceBus] The xmlserializer generates duplicate properties for inheritance chains (#104)
Don't think the issue is really in the xml serializer, but is instead in the generated classes xxxx_Impl.xxxx created for the interfaces. We have hit this in 2.0 also.
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-1938820
Yes a bit of a minor problem, more the time in finding out what was the real issue as things just stopped working with no idea why.
We flattened out the inheritance too only 2 levels to work around the problem instead.
Regards, Myles Penlington
-----Original Message----- From: andreasohlund [mailto:[email protected]] Sent: Tuesday, 30 August 2011 19:12 To: Myles Penlington Subject: Re: [NServiceBus] The xmlserializer generates duplicate properties for inheritance chains (#104)
Thanks Myles, yes that makes sense. Did this cause any problems for you?
http://andreasohlund.net
http://twitter.com/andreasohlund
Date: Mon, 29 Aug 2011 20:36:51 -0700 From: [email protected] To: [email protected] Subject: Re: [NServiceBus] The xmlserializer generates duplicate properties for inheritance chains (#104)
Don't think the issue is really in the xml serializer, but is instead in the generated classes xxxx_Impl.xxxx created for the interfaces. We have hit this in 2.0 also.
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-1938820
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-1939751
Attention: This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
Ok, thanks for the info. We'll get this fixed in 3.0!
http://andreasohlund.net
http://twitter.com/andreasohlund
Date: Tue, 30 Aug 2011 13:58:12 -0700 From: [email protected] To: [email protected] Subject: Re: [NServiceBus] The xmlserializer generates duplicate properties for inheritance chains (#104)
Yes a bit of a minor problem, more the time in finding out what was the real issue as things just stopped working with no idea why.
We flattened out the inheritance too only 2 levels to work around the problem instead.
Regards, Myles Penlington
-----Original Message----- From: andreasohlund [mailto:[email protected]] Sent: Tuesday, 30 August 2011 19:12 To: Myles Penlington Subject: Re: [NServiceBus] The xmlserializer generates duplicate properties for inheritance chains (#104)
Thanks Myles, yes that makes sense. Did this cause any problems for you?
http://andreasohlund.net
http://twitter.com/andreasohlund
Date: Mon, 29 Aug 2011 20:36:51 -0700 From: [email protected] To: [email protected] Subject: Re: [NServiceBus] The xmlserializer generates duplicate properties for inheritance chains (#104)
Don't think the issue is really in the xml serializer, but is instead in the generated classes xxxx_Impl.xxxx created for the interfaces. We have hit this in 2.0 also.
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-1938820
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-1939751
Attention: This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-1949060
The Distinct generates a new list, but I will do it. It does simplified the code.
Perfect!
On Thu, Jan 5, 2012 at 11:12 AM, Shlomi Izikovich < [email protected]
wrote:
The Distinct generates a new list, but I will do it. It does simplified the code.
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/104#issuecomment-3367822