You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2010/04/10 01:31:00 UTC

svn commit: r932647 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java

Author: mrglavas
Date: Fri Apr  9 23:30:59 2010
New Revision: 932647

URL: http://svn.apache.org/viewvc?rev=932647&view=rev
Log:
Fixing a ClassCastException. We were casting to the wrong SecurityManager class. The cast was unnecessary anyway since the object is just passed through to the SAX parser we just created.

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java?rev=932647&r1=932646&r2=932647&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java Fri Apr  9 23:30:59 2010
@@ -708,7 +708,7 @@ final class ValidatorHandlerImpl extends
                         reader = spf.newSAXParser().getXMLReader();
                         // If this is a Xerces SAX parser, set the security manager if there is one
                         if (reader instanceof org.apache.xerces.parsers.SAXParser) {
-                            SecurityManager securityManager = (SecurityManager) fComponentManager.getProperty(SECURITY_MANAGER);
+                            Object securityManager = fComponentManager.getProperty(SECURITY_MANAGER);
                             if (securityManager != null) {
                                 try {
                                     reader.setProperty(SECURITY_MANAGER, securityManager);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org