users@jaxb.java.net

Re: ObjectFactory collisions error message

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 14 May 2007 16:43:29 -0700

Robert Greig wrote:
> "[ERROR] Two declarations cause a collision in the ObjectFactory class."
>
> Is the error message essentially the same as the "Property "Foo" is already
> defined." message?

Yes. Kind of. Now it's two classes.

> I can see a workaround but I am trying to understand whether the issue is a
> dodgy schema that is being highlighted by stricter validation in JAXB 2.1 or
> some other problem.

I'm curious why this didn't cause a problem in 2.0. Maybe 2.0 failed to
detect this as an error? Or is this a bug in
2.1?

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com