snichol 2002/12/03 19:33:01 Modified: java/src/org/apache/soap/server RPCRouter.java java/docs changes.html Log: Serialize method return values using their actual type rather than the declared type when the declared type is not a primitive. This may break existing services, e.g. where methods return subclasses of the declared return type, but a serializer is registered only for the declared return type. Revision Changes Path 1.18 +3 -1 xml-soap/java/src/org/apache/soap/server/RPCRouter.java Index: RPCRouter.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/server/RPCRouter.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- RPCRouter.java 25 May 2001 19:25:28 -0000 1.17 +++ RPCRouter.java 4 Dec 2002 03:33:01 -0000 1.18 @@ -143,7 +143,9 @@ throw e; } - result = new Bean (m.getReturnType (), m.invoke (targetObject, args)); + Object ret = m.invoke(targetObject, args); + Class retType = m.getReturnType(); + result = new Bean(retType.isPrimitive() ? retType : ret.getClass(), ret); } else { // find the class that provides the BSF services (done // this way via reflection to avoid a compile-time dependency on BSF) 1.52 +6 -1 xml-soap/java/docs/changes.html Index: changes.html =================================================================== RCS file: /home/cvs/xml-soap/java/docs/changes.html,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- changes.html 19 Nov 2002 02:47:38 -0000 1.51 +++ changes.html 4 Dec 2002 03:33:01 -0000 1.52 @@ -90,12 +90,17 @@ of Maps.</li> <li>Read HTTP[S] proxy information from system properties if not explicitly specified.</li> - <li>Support messaging in the Stateless EJB and CORBA provieders. Throw an + <li>Support messaging in the Stateless EJB and CORBA providers. Throw an exception for messaging calls in the Stateful EJB and Entity EJB providers rather than throwing a NPE.</li> <li>Add client support for HTTP redirects.</li> <li>Allow additional transport headers to be specified by client.</li> <li>Add client support for one-way (as defined in WSDL) calls.</li> + <li>Serialize method return values using their actual type rather than + the declared type when the declared type is not a primitive. This may + break existing services, e.g. where methods return subclasses of the + declared return type, but a serializer is registered only for the + declared return type.</li> </ul> </li> </ul>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>