Author: mukulg
Date: Sat Jan 2 06:35:54 2010
New Revision: 895133
URL: http://svn.apache.org/viewvc?rev=895133&view=rev
Log:
if inheritable attribute processing doesn't exists in the 1.1 schema, the code
was giving exception. fixed this problem.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=895133&r1=895132&r2=895133&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Sat Jan 2 06:35:54 2010
@@ -2583,7 +2583,9 @@
// modify the Vector list, 'fInheritableAttrList' and pop the stack,
// 'fInhrAttrCountStack', to reflect inheritable attributes
processing.
if (fSchemaVersion == Constants.SCHEMA_VERSION_1_1) {
- fInheritableAttrList.setSize(fInhrAttrCountStack.pop());
+ if (fInhrAttrCountStack.size() > 0) {
+ fInheritableAttrList.setSize(fInhrAttrCountStack.pop());
+ }
}
// if we are skipping, return
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]