ws-xmlrpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpc.java
Date Thu, 17 Jan 2002 19:18:23 GMT
dlr         02/01/17 11:18:23

  Modified:    src/java/org/apache/xmlrpc XmlRpc.java
  Log:
  Removed a whole bunch of Catalina class loader related debugging code
  which slipped in accidently in revision 1.6.
  
  Revision  Changes    Path
  1.8       +2 -33     xml-rpc/src/java/org/apache/xmlrpc/XmlRpc.java
  
  Index: XmlRpc.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpc.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -u -r1.7 -r1.8
  --- XmlRpc.java	17 Jan 2002 19:13:51 -0000	1.7
  +++ XmlRpc.java	17 Jan 2002 19:18:23 -0000	1.8
  @@ -257,44 +257,13 @@
           Parser parser = null;
           try
           {
  -            Object p = parserClass.newInstance ();
  -            if (parserClass.isInstance(p))
  -                System.out.println("good");
  -            else
  -                System.out.println("bad");
  -            if (p instanceof Parser)
  -            {
  -                parser = (Parser) p;
  -            }
  -            else
  -            {
  -                System.out.println("___ p class loader: " + p.getClass().
  -                                   getClassLoader().getClass().getName());
  -                System.out.println("XmlRpc class loader: " +
  -                                   getClass().getClassLoader()
  -                                   .getClass().getName());
  -                System.out.println("Parser interface class loader: " +
  -                                   Parser.class
  -                                   .getClassLoader().getClass().getName());
  -                System.out.println("Class '" + parserClass +
  -                                   "' not an instance of org.xml.sax.Parser");
  -                Class[] a = parserClass.getInterfaces();
  -                for (int i = 0; i < a.length; i++)
  -                {
  -                    if (a[i].getClass().getName().equals("org.xml.sax.Parser"))
  -                    {
  -                        System.out.println("parserClass interface class " +
  -                                           "loader: " + a[i].getClassLoader()
  -                                           .getClass().getName());
  -                    }
  -                }
  -            }
  +            parser = (Parser) parserClass.newInstance ();
           }
           catch (NoSuchMethodError nsm)
           {
               // This is thrown if no constructor exists for the parser class
               // and is transformed into a regular exception.
  -            throw new Exception ("Can't create Parser: "+parserClass);
  +            throw new Exception ("Can't create Parser: " + parserClass);
           }
   
           parser.setDocumentHandler (this);
  
  
  

Mime
View raw message