axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/client Call.java
Date Mon, 05 Aug 2002 11:18:49 GMT
glyn        2002/08/05 04:18:49

  Modified:    java/src/org/apache/axis/client Tag: beta-3-patches
                        Call.java
  Log:
  Relax Call's checking of property names as in main trunk.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.153.4.1 +3 -2      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.153
  retrieving revision 1.153.4.1
  diff -u -r1.153 -r1.153.4.1
  --- Call.java	1 Jul 2002 17:40:30 -0000	1.153
  +++ Call.java	5 Aug 2002 11:18:48 -0000	1.153.4.1
  @@ -380,7 +380,7 @@
                           (String) value, ATTACHMENT_ENCAPSULATION_FORMAT_MIME + " "
                           +ATTACHMENT_ENCAPSULATION_FORMAT_DIME  }));
           }
  -        else {
  +        else if (name.startsWith("java.") || name.startsWith("javax.")) {
               throw new IllegalArgumentException(
                       JavaUtils.getMessage("badProp05", name));
           }
  @@ -454,7 +454,8 @@
       }
   
       public boolean isPropertySupported(String name) {
  -        return propertyNames.contains(name);
  +        return propertyNames.contains(name) ||
  +            !(name.startsWith("java.") || name.startsWith("javax."));
       }
   
       /**
  
  
  

Mime
View raw message