test/java/io/Serializable/enum/missingConstant/Write.java

Print this page

        

*** 24,37 **** /* @test * @bug 4838379 * @summary Verify that deserialization of an enum constant that does not exist * on the receiving side results in an InvalidObjectException. * ! * @compile -source 1.5 Write.java * @run main Write * @clean Write ! * @compile -source 1.5 Read.java * @run main Read * @clean Read */ import java.io.*; --- 24,37 ---- /* @test * @bug 4838379 * @summary Verify that deserialization of an enum constant that does not exist * on the receiving side results in an InvalidObjectException. * ! * @compile Write.java * @run main Write * @clean Write ! * @compile Read.java * @run main Read * @clean Read */ import java.io.*;