/[classpath]/classpath/java/io/ObjectOutputStream.java
ViewVC logotype

Diff of /classpath/java/io/ObjectOutputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by cbj, Fri Sep 21 04:22:07 2001 UTC revision 1.19 by tromey, Fri Dec 21 22:48:29 2001 UTC
# Line 1  Line 1 
1  /* ObjectOutputStream.java -- Class used to write serialized objects  /* ObjectOutputStream.java -- Class used to write serialized objects
2     Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 551  public class ObjectOutputStream extends Line 551  public class ObjectOutputStream extends
551      throws SecurityException      throws SecurityException
552    {    {
553      if (enable)      if (enable)
554        if (getClass ().getClassLoader () != null)        {
555          throw new SecurityException ("Untrusted ObjectOutputStream subclass attempted to enable object replacement");          SecurityManager sm = System.getSecurityManager ();
556            if (sm != null)
557              sm.checkPermission (new SerializablePermission ("enableSubstitution"));
558          }
559    
560      boolean old_val = replacementEnabled;      boolean old_val = replacementEnabled;
561      replacementEnabled = enable;      replacementEnabled = enable;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26