VMClassLoader.java (transformException): Removed.
authorTom Tromey <tromey@redhat.com>
Thu, 21 Apr 2005 17:20:36 +0000 (17:20 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 21 Apr 2005 17:20:36 +0000 (17:20 +0000)
* java/lang/VMClassLoader.java (transformException): Removed.
(resolveClass): No longer native.  Now does nothing.
* java/lang/natVMClassLoader.cc (resolveClass): Removed.

From-SVN: r98516

libjava/ChangeLog
libjava/java/lang/VMClassLoader.java
libjava/java/lang/natVMClassLoader.cc

index d861153..3acb212 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-21  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/VMClassLoader.java (transformException): Removed.
+       (resolveClass): No longer native.  Now does nothing.
+       * java/lang/natVMClassLoader.cc (resolveClass): Removed.
+
 2005-04-21  Anthony Green  <green@redhat.com>
 
        PR libgcj/21115
index c48fc70..5566399 100644 (file)
@@ -125,26 +125,11 @@ final class VMClassLoader
    *
    * @param c the class to resolve
    */
-  static final native void resolveClass(Class clazz);
-
-  static final void transformException(Class clazz, Throwable x)
+  static final void resolveClass(Class clazz)
   {
-    LinkageError e;
-    if (x instanceof LinkageError)
-      e = (LinkageError) x;
-    else if (x instanceof ClassNotFoundException)
-      {
-       e = new NoClassDefFoundError("while resolving class: "
-                                    + clazz.getName());
-       e.initCause (x);
-      }
-    else
-      {
-       e = new LinkageError ("unexpected exception during linking: "
-                             + clazz.getName());
-       e.initCause (x);
-      }
-    throw e;
+    // There doesn't seem to be a need for this to do anything.
+    // Testing reveals that the JDK doesn't seem to do anything here,
+    // either.
   }
 
   /**
index e7054fb..a94bf98 100644 (file)
@@ -35,21 +35,6 @@ details.  */
 #include <java/lang/Runtime.h>
 #include <java/util/HashSet.h>
 
-void
-java::lang::VMClassLoader::resolveClass (jclass klass)
-{
-  JvSynchronize sync (klass);
-  try
-    {
-      _Jv_Linker::wait_for_state (klass, JV_STATE_LINKED);
-    }
-  catch (java::lang::Throwable *x)
-    {
-      klass->set_state(JV_STATE_ERROR);
-      transformException(klass, x);
-    }
-}
-
 java::lang::Class *
 java::lang::VMClassLoader::defineClass (java::lang::ClassLoader *loader,
                                        jstring name,