[ http://jira.codehaus.org/browse/XFIRE-958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_101111 ]
gesha commented on XFIRE-958: ----------------------------- is this fix released somewhere? > Aegis does not handle the assignment of enum values properly when > de-serializing > -------------------------------------------------------------------------------- > > Key: XFIRE-958 > URL: http://jira.codehaus.org/browse/XFIRE-958 > Project: XFire > Issue Type: Bug > Components: Aegis Module > Affects Versions: 1.2.2 > Environment: Windows XP Pro, Java 5 > Reporter: Daniel Tremblay > Assignee: Dan Diephouse > Attachments: beantype.java.patch > > > if you have a class that uses an enum type, and this class is used in a > service: > E.g. > class MyObject{ > public enum MyObjectEnum{EARTH,WIND,FIRE}; > private MyObjectEnum selection; > public MyObjectEnum getSelection(){ > return selection; > } > public void setSelection(MyObjectEnum o){ > selection = o; > } > } > === > class MyService{ > public MyObject sayHello(String value){ > MyObject o = new MyObject(); > MyObjectEnum earth = MyObjectEnum.EARTH; > o.setSelection(earth); > return o; > } > } > The WSDL is generated automatically by XFire. This is fine. > When calling the method, the enumeration is not handled properly. > The attached patch fixes this problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email