Author: mrglavas
Date: Mon Oct 9 21:14:00 2006
New Revision: 454605
URL: http://svn.apache.org/viewvc?view=rev&rev=454605
Log:
Fixing a bug in the processing of the JAXP 1.2 schemaSource property. If the
value specified
for the property is an array and its component type is a subclass of File,
InputStream or
InputSource we should accept it.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java?view=diff&rev=454605&r1=454604&r2=454605
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java Mon
Oct 9 21:14:00 2006
@@ -730,7 +730,10 @@
(componentType != String.class) &&
(componentType != File.class) &&
(componentType != InputStream.class) &&
- (componentType != InputSource.class)
+ (componentType != InputSource.class) &&
+ !File.class.isAssignableFrom(componentType) &&
+ !InputStream.class.isAssignableFrom(componentType) &&
+ !InputSource.class.isAssignableFrom(componentType)
) {
// Not an Object[], String[], File[], InputStream[], InputSource[]
throw new XMLConfigurationException(
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]