User: reverbel
  Date: 02/03/14 15:31:44

  Modified:    jacorb/jacorb/lib README jacorb.jar
  Log:
  Classloading bug fix in the JacORB library. See the README file.
  
  Revision  Changes    Path
  1.2       +39 -13    thirdparty/jacorb/jacorb/lib/README
  
  Index: README
  ===================================================================
  RCS file: /cvsroot/jboss/thirdparty/jacorb/jacorb/lib/README,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- README    7 Mar 2002 22:37:24 -0000       1.1
  +++ README    14 Mar 2002 23:31:41 -0000      1.2
  @@ -4,20 +4,46 @@
   final, probably closer to 1.4 final.
   
   This jar was generated from a source tree checked out from 
  -the JacORB CVS repository on Mar 07, 2002. It contains all
  -my patches relevant to JBoss/IIOP, which have been merged 
  -into the JacORB HEAD branch and will be present in the
  -next official release (1.4). Once JacORB 1.4 is released I 
  -will put the official jar here.
  +the JacORB CVS repository on Mar 14, 2002, on which I have
  +applied the patch below.
   
  -Meanwile, if you want to generate this library, point your
  -CVS client to the JacORB CVS repository and use the commands
  -below to check out a source tree:
  +Francisco
   
  -   cvs -z3 co -D "2002/03/07 17:00:00" JacORB
  -   cvs -z3 co JacORB/src/generated
   
  -Build jacorb.jar in the usual way. (See instructions in the 
  -INSTALL file within the JacORB source tree.)
  +Index: src/org/jacorb/orb/CDRInputStream.java
  +===================================================================
  +RCS file: 
/home/bwana/brose/cvs_jacorb/JacORB/src/org/jacorb/orb/CDRInputStream.java,v
  +retrieving revision 1.39
  +diff -u -r1.39 CDRInputStream.java
  +--- CDRInputStream.java      2002/03/06 15:46:47     1.39
  ++++ CDRInputStream.java      2002/03/14 22:33:29
  +@@ -1776,10 +1776,26 @@
  +             String className = 
  +                 org.jacorb.ir.RepositoryID.className (repository_id);
  +             Class c = null;
  ++            ClassLoader ctxcl = Thread.currentThread().getContextClassLoader();
  +             try 
  +             {
  +-                c = ValueHandler.loadClass(className, codebase, null);
  +-            } 
  ++                if (ctxcl != null)
  ++                {
  ++                    try
  ++                    {
  ++                        c = ctxcl.loadClass(className);
  ++                    }
  ++                    catch (ClassNotFoundException cnfe)
  ++                    {
  ++                        c = ValueHandler.loadClass(className, codebase, null);
  ++                    }
  ++                }
  ++                else
  ++                {
  ++                    c = ValueHandler.loadClass(className, codebase, null);
  ++      
  ++                }
  ++            }
  +             catch (ClassNotFoundException e) 
  +             {
  +                 throw new org.omg.CORBA.MARSHAL ("class not found: " + className);
   
  -Francisco
  
  
  
  1.3       +4273 -4429thirdparty/jacorb/jacorb/lib/jacorb.jar
  
        <<Binary file>>
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to