dims        2002/06/14 10:02:06

  Modified:    java/src/org/apache/axis/client Call.java
  Log:
  Throw IllegalArgumentException in getProperty for TCK compliance.
  
  Revision  Changes    Path
  1.138     +6 -6      xml-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.137
  retrieving revision 1.138
  diff -u -r1.137 -r1.138
  --- Call.java 14 Jun 2002 16:43:52 -0000      1.137
  +++ Call.java 14 Jun 2002 17:02:06 -0000      1.138
  @@ -352,15 +352,15 @@
       } // setProperty
   
       /**
  -     * Returns the value associated with the named property - or null if not
  -     * defined/set.
  +     * Returns the value associated with the named property
        *
  -     * @return Object value of the property - or null
  +     * @return Object value of the property or null if the property is not set
  +     * @throws IllegalArgumentException if the requested property is not a 
supported property
        */
       public Object getProperty(String name) {
  -        if (name != null)
  -            return callProperties.get(name);
  -        return null;
  +        if (name == null || !isPropertySupported(name))
  +            throw new IllegalArgumentException();
  +        return callProperties.get(name);
       } // getProperty
   
       /**
  
  
  


Reply via email to