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
/**
- Re: cvs commit: xml-axis/java/src/org/apache/axis/cl... Davanum Srinivas
- Re: cvs commit: xml-axis/java/src/org/apache/axis/client ... Doug Davis
- Re: cvs commit: xml-axis/java/src/org/apache/axis/client ... Doug Davis
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... rsitze
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... rsitze
- Re: cvs commit: xml-axis/java/src/org/apache/axis/cl... Glen Daniels
- Re: cvs commit: xml-axis/java/src/org/apache/axi... Glen Daniels
- RE: cvs commit: xml-axis/java/src/org/apache/axis/client ... Tom Jordahl
- RE: cvs commit: xml-axis/java/src/org/apache/axis/client ... Tom Jordahl
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... dims
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... dims
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... dims
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... dims
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... dims
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... scheu
- Re: cvs commit: xml-axis/java/src/org/apache/axis/client ... dug
- Re: cvs commit: xml-axis/java/src/org/apache/axis/client ... scheu
- Re: cvs commit: xml-axis/java/src/org/apache/axis/client ... James M Snell
- Re: cvs commit: xml-axis/java/src/org/apache/axis/client ... dug
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... scheu
- cvs commit: xml-axis/java/src/org/apache/axis/client Call... scheu
