NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

The xmlserializer generates duplicate properties for inheritance chains

Open andreasohlund opened this issue 15 years ago • 6 comments

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

andreasohlund avatar Aug 10 '11 12:08 andreasohlund

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.

MylesPenlington avatar Aug 30 '11 03:08 MylesPenlington

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

andreasohlund avatar Aug 30 '11 07:08 andreasohlund

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.

MylesPenlington avatar Aug 30 '11 20:08 MylesPenlington

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

andreasohlund avatar Aug 31 '11 06:08 andreasohlund

The Distinct generates a new list, but I will do it. It does simplified the code.

shlomii avatar Jan 05 '12 10:01 shlomii

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

andreasohlund avatar Jan 05 '12 11:01 andreasohlund