xml-xmlbeans-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daver...@apache.org
Subject cvs commit: xml-xmlbeans/v1/src/xmlcomp/org/apache/xmlbeans/impl/tool SchemaCompiler.java
Date Tue, 16 Sep 2003 16:16:35 GMT
daveremy    2003/09/16 09:16:35

  Modified:    v1/src/xmlcomp/org/apache/xmlbeans/impl/tool
                        SchemaCompiler.java
  Log:
  One line code change related to Schema Compiler Extensions.
  
  The Class.forName was using the default class loader.  Changed to use
  the thread context class loader.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-xmlbeans/v1/src/xmlcomp/org/apache/xmlbeans/impl/tool/SchemaCompiler.java
  
  Index: SchemaCompiler.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v1/src/xmlcomp/org/apache/xmlbeans/impl/tool/SchemaCompiler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SchemaCompiler.java	15 Sep 2003 18:20:33 -0000	1.1
  +++ SchemaCompiler.java	16 Sep 2003 16:16:35 -0000	1.2
  @@ -167,7 +167,7 @@
           if (cl.getOpt("extension") != null) {
               try {
                   Extension e = new Extension();
  -                e.setClassName(Class.forName(cl.getOpt("extension")));
  +                e.setClassName(Class.forName(cl.getOpt("extension"), false, Thread.currentThread().getContextClassLoader()));
                   extensions.add(e);
               } catch (ClassNotFoundException e) {
                   System.err.println("Could not find extension class: " + cl.getOpt("extension")
+ "  Is it on your classpath?");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org


Mime
View raw message