users@jaxb.java.net

Re: Upgrade 1.0.1 to 1.0.2: Specified conversion customization is not used

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Mon, 22 Dec 2003 12:36:19 -0500

Christoph Brunner wrote:
> Hello,
>
> today i upgrade my JAXB from version 1.0.1 to 1.0.2.
> After the installation, i want to recomile my schemas,
> but i got the following error:
>
> [ERROR] Specified conversion customization is not
> used.
> line 15 of Customizing.xjb
>

You need to wrap the <javaType> customization in a
<property> customization:

   ...
   <jxb:bindings node=".//xs:attribute[@name='V']">
     <jxb:property>
       <jxb:baseType>
         <jxb:javaType name="java.util.Calendar"
                       parseMethod="jaxb.framework.JAXBDatatypeConverter.parseStringToCalendar"
                      printMethod="jaxb.framework.JAXBDatatypeConverter.printCalendarToString" />
       </jxb:baseType>
     </jxb:property>
   </jxb:bindings>

Refer to section 6.8.1 of the spec for more detail.

> What is the difference in version 1.0.1 and 1.0.2?
>

I think there was a bug fix that happened between 1.0.1
and 1.0.2 that made the compiler more strict. We'll work
on improving the error message.

Thanks,

--Ryan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net