From: Dave B. <bla...@us...> - 2013-11-12 19:39:35
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/cimxml/sax/node In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15130/src/org/sblim/cimclient/internal/cimxml/sax/node Modified Files: Tag: Experimental CIMNode.java Log Message: 2708 CIMNode quietly ignores DECLARATION child Index: CIMNode.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/cimxml/sax/node/CIMNode.java,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -d -r1.1.2.9 -r1.1.2.10 --- CIMNode.java 2 Jul 2013 01:55:25 -0000 1.1.2.9 +++ CIMNode.java 12 Nov 2013 19:39:33 -0000 1.1.2.10 @@ -20,6 +20,7 @@ * 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1) * 3511454 2012-03-27 blaschke-oss SAX nodes not reinitialized properly * 2604 2013-07-01 blaschke-oss SAXException messages should contain node name + * 2708 2013-11-12 blaschke-oss CIMNode quietly ignores DECLARATION child */ package org.sblim.cimclient.internal.cimxml.sax.node; @@ -81,8 +82,9 @@ String msg = "CIM node also has a " + this.iContent.getNodeName() + " child node!"; throw new SAXException(msg); } - if (pNodeNameEnum == MESSAGE || pNodeNameEnum == DECLARATION) return; - String msg = pNodeNameEnum + " cannot be a child node of CIM node!"; + if (pNodeNameEnum == MESSAGE) return; + String msg = (pNodeNameEnum == DECLARATION) ? "DECLARATION child node not supported by CIM node!" + : pNodeNameEnum + " cannot be a child node of CIM node!"; throw new SAXException(msg); } |