[ https://issues.apache.org/jira/browse/CXF-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1902. ------------------------------ Resolution: Won't Fix Fix Version/s: Invalid Assignee: Daniel Kulp According to the JAXB spec, the element name would be formed via: java.beans.Introspector.decapitalize("ZOrder") If you look at the code for decapitalize: if (name.length() > 1 && Character.isUpperCase(name.charAt(1)) && Character.isUpperCase(name.charAt(0))){ return name; } and the comment in the javadoc: * Utility method to take a string and convert it to normal Java variable * name capitalization. This normally means converting the first * character from upper case to lower case, but in the (unusual) special * case when there is more than one character and both the first and * second characters are upper case, we leave it alone. * <p> * Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays * as "URL". > Generated WSDL has incorrect character casing > --------------------------------------------- > > Key: CXF-1902 > URL: https://issues.apache.org/jira/browse/CXF-1902 > Project: CXF > Issue Type: Bug > Affects Versions: 2.0.7 > Reporter: Ryan Diehl > Assignee: Daniel Kulp > Priority: Minor > Fix For: Invalid > > > This issue occurs when generating the WSDL from a Java class. See the > following code > private Integer zOrder; > public Integer getZOrder() { return this.zOrder; } > public void setZOrder(final Integer zOrder) { this.zOrder = zOrder; } > The above code will generate the following WSDL snippet: > <xs:element minOccurs="0" name="ZOrder" nillable="true" type="xs:int"/> > Notice the capital Z. Based on other behavior, I would expect that the WSDL > would look like: > <xs:element minOccurs="0" name="zOrder" nillable="true" type="xs:int"/> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.