Index: ObjectInputStreamTest.java =================================================================== --- ObjectInputStreamTest.java (revision 433220) +++ ObjectInputStreamTest.java (working copy) @@ -90,6 +90,27 @@ list.add(this); } } + + class OIS extends ObjectInputStream { + + OIS () throws IOException { + super(); + } + + void test() throws ClassNotFoundException,IOException { + readClassDescriptor(); + } + + } + + public void test_readClassDescriptor() throws ClassNotFoundException,IOException { + try { + new OIS().test(); + } catch (NullPointerException e) { + // expected + } + } + }