|
From: Dave B. <bla...@us...> - 2012-03-31 16:00:44
|
Update of /cvsroot/sblim/jsr48-client/src/javax/cim
In directory vz-cvs-3.sog:/tmp/cvs-serv22134/src/javax/cim
Modified Files:
Tag: Experimental
CIMObjectPath.java
Log Message:
3513347 - TCK: CIMObjectPath allows empty string
Index: CIMObjectPath.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/javax/cim/CIMObjectPath.java,v
retrieving revision 1.11.2.18
retrieving revision 1.11.2.19
diff -u -d -r1.11.2.18 -r1.11.2.19
--- CIMObjectPath.java 31 Mar 2012 15:49:03 -0000 1.11.2.18
+++ CIMObjectPath.java 31 Mar 2012 16:00:40 -0000 1.11.2.19
@@ -29,6 +29,7 @@
* 3496349 2012-03-02 blaschke-oss JSR48 1.0.0: add CIMObjectPath getKeyValue
* 3510090 2012-03-23 blaschke-oss Fix CIMObjectPath.toString() inconsistencies
* 3513343 2012-03-31 blaschke-oss TCK: CIMObjectPath must validate XML schema name
+ * 3513347 2012-03-31 blaschke-oss TCK: CIMObjectPath allows empty string
*/
package javax.cim;
@@ -292,6 +293,8 @@
URI uri;
if (pObjectPath == null) throw new IllegalArgumentException("ObjectPath is null!");
+ if (pObjectPath.trim().length() == 0) throw new IllegalArgumentException(
+ "ObjectPath is empty!");
try {
uri = URI.parse(pObjectPath);
|