users@jaxb.java.net

Re: Jaxb 1.0.1 and defaults values

From: Ed Mooney <Ed.Mooney_at_sun.com>
Date: Tue, 10 Jun 2003 14:41:38 -0400

Hi Gary,

We're tracking this as:

http://developer.java.sun.com/developer/bugParade/bugs/4802202.html

We have yet to identify an economical fix.

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Gary Gregory wrote:
> I /am/ looking for element defaulting. I guess I /could/ change my XSD
> to use attributes. Can we expect element defaulting in a maintenance
> release?
>
> For example, I have:
>
> <xs:element name="keepAliveTimeMillis" type="xs:int" default="60000"
> minOccurs="0">
>
> but
>
> ThreadPoolType type = new ObjectFactory().createThreadPool();
> int x = type.getKeepAliveTimeMillis();
>
> returns 0 and not 60000.
>
> Gary
>
>
[ ... ]