jdk/test/java/io/Serializable/evolution/RenamePackage/extension/ExtendedObjectInputStream.java
equal
deleted
inserted
replaced
26 import java.util.Hashtable; |
26 import java.util.Hashtable; |
27 import java.io.*; |
27 import java.io.*; |
28 |
28 |
29 public class ExtendedObjectInputStream extends ObjectInputStream { |
29 public class ExtendedObjectInputStream extends ObjectInputStream { |
30 |
30 |
31 static private Hashtable renamedClassMap; |
31 private static Hashtable renamedClassMap; |
32 |
32 |
33 public ExtendedObjectInputStream(InputStream si) |
33 public ExtendedObjectInputStream(InputStream si) |
34 throws IOException, StreamCorruptedException |
34 throws IOException, StreamCorruptedException |
35 { |
35 { |
36 super(si); |
36 super(si); |
47 } |
47 } |
48 } |
48 } |
49 return super.resolveClass(v); |
49 return super.resolveClass(v); |
50 } |
50 } |
51 |
51 |
52 static public void addRenamedClassName(String oldName, String newName) |
52 public static void addRenamedClassName(String oldName, String newName) |
53 throws ClassNotFoundException |
53 throws ClassNotFoundException |
54 { |
54 { |
55 Class cl = null; |
55 Class cl = null; |
56 |
56 |
57 if (renamedClassMap == null) |
57 if (renamedClassMap == null) |