users@jaxb.java.net

Re: JAXB Package Solution

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 06 Nov 2006 11:40:47 -0800

Lichtenwalter, Ryan wrote:
> If I specify the -p option at the command line, I can change the package
> name with your new version. I was trying to do it exclusively with
> custom bindings before, and it didn't work. Perhaps I missed something?
> It seems desirable to change the package for generated adapters at the
> granularity of the bindings file.

Yes. I actually consider this to be a bug, if it doesn't work.

> Also, the problem with the unset method turned out to be that I didn't
> check for null being passed into the adapter class that I created.
> Setting a null value does work as you said. Just as a design suggestion,
> it seems that if an xml element or attribute is optional, an unset
> method should exist, even if all that method does is pass a null value.

The other side of the coin is that generally we don't want to generate
too many methods, as it adds up to the perceived complexity.

So this one is hard to say which is better, I think.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com