Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0.5
-
Fix Version/s: 1.1 M1
-
Component/s: XML code generator
-
Labels:None
-
Environment:Windows XP Pro
-
Number of attachments :
Description
Upgraded to 1.0.5 from 1.0M4. Based on the following example snippet:
<xs:complexType name="GenClass">
<xs:complexContent>
<xs:extension base="BaseGen">
<xs:sequence>
<xs:element name="widgets" type="Widget" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
The following setters are generated (with Java 5 support turned on):
public void setWidgets(Widget[] vWidgetsArray)
public void setWidgets(java.util.List<Widget> vWidgetsList)
public void setWidgetsList(java.util.Vector<Widget> WidgetsVector)
whereas the following were generated in 1.0M4:
public void setWidgets(Widget[] WidgetsArray)
public void setWidgets(java.util.List widgetsCollection)
public void setWidgetsList(java.util.List widgetsCollection)
Why would you need - in j2 mode - a second setter with identical signature ? And as mentioned on the mailing list, this method has a particular purpose: to allow the member to be populated by passing a Vector to it. Now, having said that, one could argue that the name itself is not really intuitive ...,