axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/client Stub.java
Date Mon, 10 May 2004 08:26:57 GMT
ias         2004/05/10 01:26:57

  Modified:    java/src/org/apache/axis/client Stub.java
  Log:
  Fix _getProperty to throw JAXRPCException when name argument is null, which is considered
invalid by JAX-RPC 1.1 TCK.
  
  Revision  Changes    Path
  1.37      +5 -4      ws-axis/java/src/org/apache/axis/client/Stub.java
  
  Index: Stub.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/client/Stub.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Stub.java	26 Apr 2004 11:51:43 -0000	1.36
  +++ Stub.java	10 May 2004 08:26:57 -0000	1.37
  @@ -150,7 +150,11 @@
        * @return the value of a named property.
        */
       public Object _getProperty(String name) {
  -        if (name != null) {
  +        if (name == null) {
  +            throw new JAXRPCException(
  +                    Messages.getMessage("badProp05", name));
  +        }
  +        else {
               if (name.equals(Call.USERNAME_PROPERTY)) {
                   return cachedUsername;
               }
  @@ -170,9 +174,6 @@
               else {
                   return cachedProperties.get(name);
               }
  -        }
  -        else {
  -            return null;
           }
       } // _getProperty
   
  
  
  

Mime
View raw message