This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.io.ObjectInputStream
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Fri, 6 Feb 2004 15:10:39 +0100
- Subject: FYI: Patch: java.io.ObjectInputStream
Hi list,
I just commited the attached patch to revert the change of the
currentClassLoader method.
Michael
2004-02-06 Michael Koch <konqueror@gmx.de>
* java/io/ObjectInputStream.java
(currentClassLoader): Reverted to old version of this method.
Index: java/io/ObjectInputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/ObjectInputStream.java,v
retrieving revision 1.26
diff -u -b -B -r1.26 ObjectInputStream.java
--- java/io/ObjectInputStream.java 6 Feb 2004 13:27:36 -0000 1.26
+++ java/io/ObjectInputStream.java 6 Feb 2004 13:50:48 -0000
@@ -1737,7 +1737,11 @@
* @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
{