wsdl2java bug? bad classname for DatatypeConverter

View: New views
2 Messages — Rating Filter:   Alert me  

wsdl2java bug? bad classname for DatatypeConverter

by Linus Kamb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just ran the included wsdl2java (CXF 2.2.3) for the first time in a while,
after having discovered I could specify alternate dateTime binding so I
don't have to work with XMLGregorianCalendars, and the resulting generated
code has a bug:

 

The ObjectFactory has the method:

 

    @XmlElementDecl(namespace = "urn:neries:emsc:ws", name = "dateMin",
scope = Events.class)

    @XmlJavaTypeAdapter(Adapter1 .class)

    public JAXBElement<Calendar> createEventsDateMin(Calendar value) {

        return new JAXBElement<Calendar>(_EventsDateMin_QNAME,
Calendar.class, Events.class, value);

    }

 

And the Adapter1 java class has the method:

 

    public Calendar unmarshal(String value) {

        return (javax.xml.DatatypeConverter.parseDateTime(value));

    }

 

I think that should be javax.xml.bind.DatatypeConverter

 

I did not see a bug in CXF JIRA.

 

 


RE: wsdl2java bug? bad classname for DatatypeConverter

by Linus Kamb-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hm.  Looking at the source, it looks like it has the proper classname string
in there, so perhaps I'm getting some wires crossed somewhere.

> -----Message d'origine-----
> De : Linus Kamb [mailto:kamb@...]
> Envoyé : Friday, November 06, 2009 10:41 AM
> À : users@...
> Objet : wsdl2java bug? bad classname for DatatypeConverter
>
> Just ran the included wsdl2java (CXF 2.2.3) for the first time in a while,
> after having discovered I could specify alternate dateTime binding so I
> don't have to work with XMLGregorianCalendars, and the resulting generated
> code has a bug:
>
>
>
> The ObjectFactory has the method:
>
>
>
>     @XmlElementDecl(namespace = "urn:neries:emsc:ws", name = "dateMin",
> scope = Events.class)
>
>     @XmlJavaTypeAdapter(Adapter1 .class)
>
>     public JAXBElement<Calendar> createEventsDateMin(Calendar value) {
>
>         return new JAXBElement<Calendar>(_EventsDateMin_QNAME,
> Calendar.class, Events.class, value);
>
>     }
>
>
>
> And the Adapter1 java class has the method:
>
>
>
>     public Calendar unmarshal(String value) {
>
>         return (javax.xml.DatatypeConverter.parseDateTime(value));
>
>     }
>
>
>
> I think that should be javax.xml.bind.DatatypeConverter
>
>
>
> I did not see a bug in CXF JIRA.
>
>
>
>