cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balazs Kollar" <balazs.kol...@gmail.com>
Subject wsdl2java-generated beans are not Introspector compliant
Date Fri, 18 Apr 2008 13:47:17 GMT
Dear all,

I am just integrating CXF into our java project, and I have run into the
following problem. If a generated class has a field of type Boolean, its
getter method will start with "is", not "get", as it should. This causes a
problem if you want to process the bean with apache-beanutils (or
java.beans.Introspector), because those treat the field as read-only.
The correct prefix for these fields is "get".

In detail: The XSD data type was the following: <xs:element minOccurs="0"
name="enabled" type="xs:boolean"/>

The class generated is like this:

public class UserDTO {
protected Boolean deleted;
public Boolean isDeleted() { return deleted; }
...
}

Please fix this in CXF 2.1, if it is possible.

Thanks,
Bal√°zs
Java Developer,
http://www.statlogics.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message