Hi Thomas,
Thomas Fuller wrote:
> Hi Jörg,
>
> Apologies for any inconvenience. Please see the attached zip file --
> specifically src/test/Main.java. The is severely cut down and includes
> everything needed to reproduce the problem.
>
> The unit test is a simple if/then in the main method:
>
> if (!"High income".equals(value)) // This will fail.
> throw new RuntimeException ("Failed: the value is wrong: " +
> value);
>
> I've tried getting this to work several ways and don't see why the value
> is not being set.
Well, if I create a IncomesLevel with one IncomeLevel of id 'HIC' and value
"High Income" manually and marshal that to XML, I get:
==================== %< ========================
<wb:IncomeLevels>
<wb:incomeLevel id="HIC">
<value>High income</value>
</wb:incomeLevel>
</wb:IncomeLevels>
==================== %< ========================
This should make it immediately obvious, why the value of your deserialized
IncomeLevel instances is null.
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email