users@jaxb.java.net

Re: _at_XmlAccessorType(AccessType.FIELD) type mismatch

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 05 Jun 2007 16:24:50 -0700

bubada wrote:
> Eclipse reports the following error:
> "Type mismatch: cannot convert from AccessType to XmlAccessType" and
> suggests no solutions.
>
> This error occurs in every Java class that is generated from my XML schema.

See https://jaxb.dev.java.net/nonav/2.1.3/docs/changelog2.html#2.0

> The spec has renamed AccessType to XmlAccessType, and @AccessorType to @XmlAccessorType.

You must be using an ancient JAXB 2.0 EA versions that are not
compatible with 2.0 final version.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com