users@jaxb.java.net

Re: XJC error message -> extending SingleField

From: <HeruMartinus.Salim_at_infineon.com>
Date: Thu, 16 Nov 2006 13:20:14 +0100

 

> > > After that I tried to extend the class SingleClass.
> > > Here I added the enum of Messages hard-coded into this class.
> > >
> > > And still while parsing xml schema
> > > I got an error message
> > >
> > > C:\UserData\salimher\testJava\plugin\build.xml:42:
> > > java.lang.IllegalArgumentException: trying to create the
> same field
> > > twice: addressUnit
> >
> > Obviously you're trying to create the same field within the defined
> > class twice.
> > Review your field renderer code.
>
> The Problem, I didn't make any changes besides renaming the
> classname and identifier to fit the extending renderer
>

I think I've found the problem,