Same for me. There is also a comment in the generated file that makes it clear this is deliberate, although I don't know why this decisison was made. You can always do foo.getAddresses().clear() foo.getAddresses().addAll(someOtherList);
- Dan > -----Original Message----- > From: Landslide [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2008 5:49 AM > To: [email protected] > Subject: WSDL2Java does not generate the setter method of a > List of objects > > > If I have a class of Contact which has an instance variable of > List<Address> addresses = new ArrayList<Address>(); > on my server side implementation, using the tool of WSDL2Java > generates the > getter method: > public List<Address> getAddresses() { > if (addresses == null) { > addresses = new ArrayList<Address>(); > } > return this.addresses; > } > > but it does not generate the setter method: > public void setAddresses(List<Address> addresses) { > this.addresses = addresses; > } > > I am using CXF 2.0.4. > -- > View this message in context: > http://www.nabble.com/WSDL2Java-does-not-generate-the-setter-m > ethod-of-a-List-of-objects-tp15872563p15872563.html > Sent from the cxf-user mailing list archive at Nabble.com. > >
