User: starksm 
  Date: 02/02/17 13:40:16

  Modified:    src/main/org/jboss/system UnifiedClassLoader.java
  Log:
  Restore the getURLs override as its removal was invalid
  
  Revision  Changes    Path
  1.7       +18 -9     jboss/src/main/org/jboss/system/UnifiedClassLoader.java
  
  Index: UnifiedClassLoader.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/UnifiedClassLoader.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- UnifiedClassLoader.java   16 Feb 2002 08:50:21 -0000      1.6
  +++ UnifiedClassLoader.java   17 Feb 2002 21:40:15 -0000      1.7
  @@ -20,7 +20,7 @@
    * @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
    * @author <a href="[EMAIL PROTECTED]">Christoph G. Jung</a>
    * @author <a href="[EMAIL PROTECTED]">Scott Stark/a>
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    * 
    * <p><b>20010830 marc fleury:</b>
    * <ul>
  @@ -75,14 +75,14 @@
         }
         catch(Exception e)
         {
  -      //
  -      // FIXME: Should not mask exceptionsd like this, if it is an error, then
  -      //        propagate it to caller tyo handle
  -      //
  -      log.warn("URL "+url+" could not be opened", e);
  +         //
  +         // FIXME: Should not mask exceptionsd like this, if it is an error, then
  +         //        propagate it to caller tyo handle
  +         //
  +         log.warn("URL "+url+" could not be opened", e);
         }
      }
  -   
  +
      /**
       * We intercept the load class to know exactly the dependencies
       * of the underlying jar
  @@ -149,6 +149,16 @@
         return url.hashCode();
      }
   
  +   /** Return an empty URL array to force the RMI marshalling subsystem to
  +    *use the java.server.codebase property as the annotated codebase. Do not
  +    *remove this method without discussing it on the dev list.
  +    */
  +   private static final URL[] empty = {};
  +   public URL[] getURLs()
  +   {
  +      return empty;
  +   }
  +
      /**
       * This method simply invokes the super.getURLs() method to access the
       * list of URLs that make up the UnifiedClassLoader classpath.
  @@ -170,8 +180,7 @@
      public String toString()
      {
         StringBuffer tmp = new StringBuffer("JBoss UnifiedClassloader: keyURL : ");
  -      tmp.append(getURL());
  -      
  +      tmp.append(getURL());      
         tmp.append(']');
         return tmp.toString();
      }
  
  
  

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

Reply via email to