Author: mrglavas
Date: Wed Oct 11 13:11:16 2006
New Revision: 462925
URL: http://svn.apache.org/viewvc?view=rev&rev=462925
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 an interface we should
accept it since
it's possible that each of the members of the array are an instance of one of
the allowable types.
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=462925&r1=462924&r2=462925
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java Wed
Oct 11 13:11:16 2006
@@ -734,7 +734,8 @@
(componentType != InputSource.class) &&
!File.class.isAssignableFrom(componentType) &&
!InputStream.class.isAssignableFrom(componentType) &&
- !InputSource.class.isAssignableFrom(componentType)
+ !InputSource.class.isAssignableFrom(componentType) &&
+ !componentType.isInterface()
) {
// Not an Object[], String[], File[], InputStream[], InputSource[]
MessageFormatter mf =
fErrorReporter.getMessageFormatter(XSMessageFormatter.SCHEMA_DOMAIN);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]