I'm checking this in.

I was looking at japi today and I saw the missing RMIClassLoader
method.  I'm not sure why we never implemented this before -- it is
trivial.

While looking at this I discovered that there is a stub method in this
class -- getProviderInstance does nothing.  It would be nice if we
marked all our stub methods specially somehow so that we don't get
lulled into thinking we're further along than we are...

Tom

2006-03-02  Tom Tromey  <[EMAIL PROTECTED]>

        * java/rmi/server/RMIClassLoader.java (loadProxyClass): New method.

Index: java/rmi/server/RMIClassLoader.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/rmi/server/RMIClassLoader.java,v
retrieving revision 1.19
diff -u -r1.19 RMIClassLoader.java
--- java/rmi/server/RMIClassLoader.java 29 Sep 2005 13:13:07 -0000      1.19
+++ java/rmi/server/RMIClassLoader.java 2 Mar 2006 18:33:27 -0000
@@ -84,6 +84,16 @@
     return spi.loadClass(codebase, name, defaultLoader);
   }
 
+  public static Class loadProxyClass (String codeBase, String[] interfaces,
+                                      ClassLoader defaultLoader)
+    throws MalformedURLException, ClassNotFoundException
+  {
+    RMIClassLoaderSpi spi = getProviderInstance();
+    if (spi == null)
+      spi = getDefaultProviderInstance();
+    return spi.loadProxyClass(codeBase, interfaces, defaultLoader);
+  }
+
   /**
    * Loads a class from <code>codeBase</code>.
    *

Reply via email to