User: lqd     
  Date: 02/04/08 02:35:31

  Modified:    src/main/org/jboss/util/jmx MBeanProxy.java
  Log:
  fix compilation issues when using jikes
  
  Revision  Changes    Path
  1.5       +8 -6      jboss-common/src/main/org/jboss/util/jmx/MBeanProxy.java
  
  Index: MBeanProxy.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-common/src/main/org/jboss/util/jmx/MBeanProxy.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MBeanProxy.java   3 Apr 2002 08:15:08 -0000       1.4
  +++ MBeanProxy.java   8 Apr 2002 09:35:30 -0000       1.5
  @@ -37,7 +37,7 @@
    * <li>Don't process attributes using invoke.
    * </ul>
    *
  - * @version <tt>$Revision: 1.4 $</tt>
  + * @version <tt>$Revision: 1.5 $</tt>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Rickard �berg</a>.
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>.
  @@ -260,15 +260,15 @@
         // make a which delegates to MBeanProxyInstance's cl for it's class resolution
         ClassLoader cl = new ClassLoader(intf.getClassLoader()) 
         {
  -         public Class loadClass(final String name) throws ClassNotFoundException
  +         public Class loadClass(final String className) throws 
ClassNotFoundException
            {
               try {
  -               return super.loadClass(name);
  +               return super.loadClass(className);
               }
               catch (ClassNotFoundException e) {
                  // only allow loading of MBeanProxyInstance from this loader
  -               if (name.equals(MBeanProxyInstance.class.getName())) {
  -                  return MBeanProxyInstance.class.getClassLoader().loadClass(name);
  +               if (className.equals(MBeanProxyInstance.class.getName())) {
  +                  return 
MBeanProxyInstance.class.getClassLoader().loadClass(className);
                  }
                  
                  // was some other classname, throw the CNFE
  @@ -282,4 +282,6 @@
                                       new MBeanProxy(name, server));
      }
   }
  -
  +/*
  +vim:tabstop=3:et:shiftwidth=3
  +*/
  
  
  

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

Reply via email to