neilg       2003/02/17 14:35:40

  Modified:    java/src/org/apache/html/dom HTMLDocumentImpl.java
               java/src/org/apache/xml/serialize SerializerFactory.java
  Log:
  fix to bug 16509; thanks to Igor Malinin
  
  Revision  Changes    Path
  1.14      +4 -4      xml-xerces/java/src/org/apache/html/dom/HTMLDocumentImpl.java
  
  Index: HTMLDocumentImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLDocumentImpl.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- HTMLDocumentImpl.java     17 Oct 2002 14:35:14 -0000      1.13
  +++ HTMLDocumentImpl.java     17 Feb 2003 22:35:39 -0000      1.14
  @@ -64,7 +64,6 @@
   import org.w3c.dom.html.*;
   import org.apache.xerces.dom.DocumentImpl;
   import org.apache.xerces.dom.NodeImpl;
  -import org.apache.xerces.dom.AttrImpl;
   import org.apache.xerces.util.ObjectFactory;
   import org.w3c.dom.DOMException;
   
  @@ -777,8 +776,9 @@
       private static void populateElementType( String tagName, String className )
       {
           try {
  -            _elementTypesHTML.put( tagName, 
  -                    
ObjectFactory.findClassLoader().loadClass("org.apache.html.dom." + className) );
  +            _elementTypesHTML.put( tagName,
  +                ObjectFactory.findProviderClass("org.apache.html.dom." + className,
  +                    HTMLDocumentImpl.class.getClassLoader(), false) );
           } catch ( Exception except ) {
               new RuntimeException( "HTM019 OpenXML Error: Could not find or execute 
class " + className + " implementing HTML element " + tagName
                                     + "\n" + className + "\t" + tagName);
  
  
  
  1.8       +2 -2      
xml-xerces/java/src/org/apache/xml/serialize/SerializerFactory.java
  
  Index: SerializerFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xml/serialize/SerializerFactory.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SerializerFactory.java    10 Sep 2002 14:04:52 -0000      1.7
  +++ SerializerFactory.java    17 Feb 2003 22:35:40 -0000      1.8
  @@ -110,7 +110,7 @@
                   className = token.nextToken();
                   try {
                       factory = (SerializerFactory) ObjectFactory.newInstance( 
className, 
  -                        ObjectFactory.findClassLoader(), true);
  +                        SerializerFactory.class.getClassLoader(), true);
                       if ( _factories.containsKey( factory.getSupportedMethod() ) )
                           _factories.put( factory.getSupportedMethod(), factory );
                   } catch ( Exception except ) { }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to