[xstream-user] Re: Re: Re: Parsing/serializing 'Optional' values

2013-09-12 Thread Jörg Schaible
Hi Remko, Remko Tronçon wrote: Hi Jörg, On 11 September 2013 21:48, Jörg Schaible joerg.schai...@gmx.de wrote: UnmarshalingContext.getRequiredType contains normally the correct thing. Well, it is correct, in the sense that it says it requires an Optional. Well, since Optional is

Re: [xstream-user] Re: Re: Re: Parsing/serializing 'Optional' values

2013-09-12 Thread Remko Tronçon
Hi Jörg, Since Optional is abstract, myfield must have been populated with a Ah, I see that 'Optional' wasn't the best example. My version of Optional isn't abstract, I directly instantiate 'OptionalString'. You're right, I don't nest my output, so in my case, class Bar { OptionalString