axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding TypeMappingImpl.java
Date Mon, 17 Jun 2002 20:14:04 GMT
scheu       2002/06/17 13:14:04

  Modified:    java/src/org/apache/axis/encoding TypeMappingImpl.java
  Log:
  another TCK related fix. Throw an exception if tm.register is called with null serializer
factory and deserializer factory
  
  Revision  Changes    Path
  1.17      +4 -2      xml-axis/java/src/org/apache/axis/encoding/TypeMappingImpl.java
  
  Index: TypeMappingImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/TypeMappingImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TypeMappingImpl.java	17 Jun 2002 16:22:05 -0000	1.16
  +++ TypeMappingImpl.java	17 Jun 2002 20:14:04 -0000	1.17
  @@ -229,8 +229,10 @@
                            javax.xml.rpc.encoding.DeserializerFactory dsf)
           throws JAXRPCException {
   
  -       if (javaType == null || xmlType == null) {
  -            // return false;
  +        // Both javaType and xmlType must be specified, and
  +        // at least a serializer or deserializer factory must be specified.
  +        if (javaType == null || xmlType == null ||
  +            (sf == null && dsf == null)) {
               throw new JAXRPCException();
           }
   
  
  
  

Mime
View raw message