< prev index next >

test/jdk/java/io/Serializable/resolveClass/consTest/ConsTest.java

Print this page
rev 51881 : [mq]: 8211171
rev 51882 : [mq]: 8211171-1

*** 22,33 **** */ /* * @test * @bug 4413434 ! * @library /lib/testlibrary ! * @build JarUtils SetupJar Boot * @run driver SetupJar * @run main/othervm -Xbootclasspath/a:boot.jar ConsTest * @summary Verify that generated java.lang.reflect implementation classes do * not interfere with serialization's class resolution mechanism. */ --- 22,33 ---- */ /* * @test * @bug 4413434 ! * @library /test/lib ! * @build jdk.test.lib.util.JarUtils SetupJar Boot * @run driver SetupJar * @run main/othervm -Xbootclasspath/a:boot.jar ConsTest * @summary Verify that generated java.lang.reflect implementation classes do * not interfere with serialization's class resolution mechanism. */
*** 37,46 **** --- 37,48 ---- import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.lang.reflect.Constructor; + import jdk.test.lib.util.JarUtils; + public class ConsTest implements Serializable { public static void main(String[] args) throws Exception { Constructor cons = Boot.class.getConstructor( new Class[] { ObjectInputStream.class }); ByteArrayOutputStream bout = new ByteArrayOutputStream();
< prev index next >