ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Hashtable/ReadObject.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Hashtable/ReadObject.java (file contents):
Revision 1.3 by jsr166, Sun Sep 5 21:32:19 2010 UTC vs.
Revision 1.6 by jsr166, Mon Jan 8 03:12:03 2018 UTC

# Line 26 | Line 26
26   * @bug 4652911
27   * @summary test Hashtable readObject for invocation of overridable put method
28   */
29 import java.util.Hashtable;
29  
31 import java.io.ByteArrayOutputStream;
32 import java.io.ObjectOutputStream;
30   import java.io.ByteArrayInputStream;
31 + import java.io.ByteArrayOutputStream;
32   import java.io.ObjectInputStream;
33 + import java.io.ObjectOutputStream;
34   import java.io.Serializable;
35 + import java.util.Hashtable;
36  
37   /**
38   * Class that extends Hashtable to demonstrate bug when
# Line 52 | Line 52 | public class ReadObject extends Hashtabl
52          Object getValue() {
53              return mValue;
54          }
55 <    };
55 >    }
56  
57      public Object get(Object key) {
58          ValueWrapper valueWrapper = (ValueWrapper)super.get(key);
# Line 98 | Line 98 | public class ReadObject extends Hashtabl
98          ReadObject myHashtableCopy = (ReadObject)copyObject(myHashtable);
99          String value = (String)myHashtableCopy.get("key");
100      }
101 < };
101 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines