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

Diff of /classpath/java/io/ObjectInputStream.java

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

revision 1.21 by tromey, Sun Dec 9 02:15:55 2001 UTC revision 1.22 by tromey, Fri Dec 21 22:48:29 2001 UTC
# Line 523  public class ObjectInputStream extends I Line 523  public class ObjectInputStream extends I
523      throws SecurityException      throws SecurityException
524    {    {
525      if (enable)      if (enable)
526        if (getClass ().getClassLoader () != null)        {
527          throw new SecurityException ("Untrusted ObjectInputStream subclass attempted to enable object resolution");          SecurityManager sm = System.getSecurityManager ();
528            if (sm != null)
529              sm.checkPermission (new SerializablePermission ("enableSubtitution"));
530          }
531    
532      boolean old_val = this.resolveEnabled;      boolean old_val = this.resolveEnabled;
533      this.resolveEnabled = enable;      this.resolveEnabled = enable;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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