users@jaxb.java.net

bug

From: Gustavo Cebrian <gustavo.cebrian_at_greenhatconsulting.com>
Date: Mon, 15 Sep 2003 16:07:13 +0100

Hi guys,

I am using JAXB to marshall an array of a class which contains a few integers as attributes.

Below there is a xml representing my data structure.

//===========================
<registerDirectDebit>
    <customer>
        <title>Mr</title>
        <firstName>Gustavo</firstName>
        <surname>Cebrian</surname>
        <otherInitials>V</otherInitials>
        <dateOfBirth>09/08/1974</dateOfBirth>
        <daytimePhoneNumber>0208675133</daytimePhoneNumber>
        <mobilePhoneNumber>079</mobilePhoneNumber>
        <eveningPhoneNumber>0208768621</eveningPhoneNumber>
        <emailAddress>im_art_competition_at_yahoo.co.uk</emailAddress>
        <addresses>
            <addressLine1>196</addressLine1>
            <town>LONDON</town>
            <county>LONDON</county>
            <postcode>N19 4BA</postcode>
            <yearsAtAddress>0</yearsAtAddress>
            <monthsAtAddress>1</monthsAtAddress>
        </addresses>
        <addresses>
            <addressLine1>196</addressLine1>
            <town>LONDON</town>
            <county>LONDON</county>
            <postcode>N19 4BA</postcode>
            <yearsAtAddress>0</yearsAtAddress>
            <monthsAtAddress>1</monthsAtAddress>
            <residenceStartDate>July 2003</residenceStartDate>
        </addresses>
        <addresses>
            <addressLine1>196</addressLine1>
            <town>LONDON</town>
            <county>LONDON</county>
            <postcode>N19 4BA</postcode>
            <yearsAtAddress>0</yearsAtAddress>
            <monthsAtAddress>1</monthsAtAddress>
            <residenceStartDate>June 2003</residenceStartDate>
        </addresses>
    </customer>
    <bankBranch/>
    <bankAccount/>
    <candidateAddressMatches>
        <addressLine1>196</addressLine1>
        <addressLine2>Courtauld Rd</addressLine2>
        <town>LONDON</town>
        <county>LONDON</county>
        <postcode>N19 4BA</postcode>
        <yearsAtAddress>0</yearsAtAddress>
        <monthsAtAddress>1</monthsAtAddress>
        <residenceStartDate>June 2003</residenceStartDate>
    </candidateAddressMatches>
</registerDirectDebit>

//================================================================

Basically, I think there is a bug in JAXB when marshalling integers ( at least in the version I

have got ), the integers do not get marshalled properly.

These are the integers:

<yearsAtAddress>0</yearsAtAddress>
<monthsAtAddress>1</monthsAtAddress>

Has anyone come across this bug?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net