[jbossws-issues] [JBoss JIRA] Created: (JBWS-2477) Support generics in wrapper classes

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Wed Jan 21 04:40:04 EST 2009


Support generics in wrapper classes
-----------------------------------

                 Key: JBWS-2477
                 URL: https://jira.jboss.org/jira/browse/JBWS-2477
             Project: JBoss Web Services
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: jbossws-native, tools-jaxws
            Reporter: Alessio Soldano
            Assignee: Alessio Soldano
             Fix For: jbossws-native-3.0.6


When running wsprovide with -keep option (ie. generating and keeping the artifacts sources), we currently do not support generics in wrapper classes.
So for a SEI like this:
@WebService(targetNamespace = "http://foo.bar.com/calculator")
public class CalculatorBean
{
   @WebMethod
   public Set<Integer> getKeys(HashMap<Integer, String> map)
   {
      if (map != null)
         return map.keySet();
      else
         return null;
   }
}

we get the following wrapper
@XmlRootElement(name = "getKeys", namespace = "http://foo.bar.com/calculator")
@XmlType(name = "getKeys", namespace = "http://foo.bar.com/calculator")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetKeys {

    @XmlElement(name = "arg0", namespace = "")
    private HashMap arg0;

    public HashMap getArg0() {
        return this.arg0;
    }

    public void setArg0(HashMap arg0) {
        this.arg0 = arg0;
    }

}

instead of

@XmlRootElement(name = "getKeys", namespace = "http://foo.bar.com/calculator")
@XmlType(name = "getKeys", namespace = "http://foo.bar.com/calculator")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetKeys {

    @XmlElement(name = "arg0", namespace = "")
    private HashMap<Integer, String> arg0;

    public HashMap<Integer, String> getArg0() {
        return this.arg0;
    }

    public void setArg0(HashMap<Integer, String> arg0) {
        this.arg0 = arg0;
    }

}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list