2004-02-06 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Fri, 6 Feb 2004 14:05:37 +0000 (14:05 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Fri, 6 Feb 2004 14:05:37 +0000 (14:05 +0000)
* java/io/ObjectInputStream.java
(currentClassLoader): Reverted to old version of this method.

From-SVN: r77397

libjava/ChangeLog
libjava/java/io/ObjectInputStream.java

index 204cd71641308129e3955ec16593c368ed51fdcb..69795b95001ea16f789bc3a3f9ea725590fc1395 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-06  Michael Koch  <konqueror@gmx.de>
+
+       * java/io/ObjectInputStream.java
+       (currentClassLoader): Reverted to old version of this method.
+
 2004-02-06  Jeroen Frijters  <jeroen@frijters.net>
 
        * java/io/ObjectInputStream.java: Made all calls
index d0def09181c98cef9bb875fa6e6ede8afadbdb5e..e471b6d7d59b4cdef22bd54f8ce27bf8c16188d7 100644 (file)
@@ -1737,7 +1737,11 @@ public class ObjectInputStream extends InputStream
    * @param sm SecurityManager instance which should be called.
    * @return The current class loader in the calling stack.
    */
-  private static native ClassLoader currentClassLoader (SecurityManager sm);
+  private static ClassLoader currentClassLoader (SecurityManager sm)
+  {
+    // FIXME: This is too simple.
+    return ClassLoader.getSystemClassLoader ();
+  }
 
   private void callReadMethod (Method readObject, Class klass, Object obj) throws IOException
   {