|
From: Dave B. <bla...@us...> - 2012-04-16 13:14:42
|
Update of /cvsroot/sblim/jsr48-client/src/javax/cim
In directory vz-cvs-3.sog:/tmp/cvs-serv29999/src/javax/cim
Modified Files:
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.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- CIMObjectPath.java 16 Apr 2012 12:52:59 -0000 1.29
+++ CIMObjectPath.java 16 Apr 2012 13:14:40 -0000 1.30
@@ -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);
|