< prev index next >

test/jdk/javax/imageio/AppletResourceTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 22,40 **** */ /* * @test * @bug 4481957 - * @key headful * @summary Tests that applet-supplied ImageReader, ImageWriter, and * IIOMetadataFormat implementations do not throw unexpected exceptions * when indirectly attempting to access ResourceBundles * @run main AppletResourceTest - * @run applet AppletResourceTest.html */ - import java.applet.Applet; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.IOException; import java.util.Iterator; import java.util.ListResourceBundle; --- 22,37 ----
*** 51,61 **** import javax.imageio.metadata.IIOMetadata; import javax.imageio.spi.ImageReaderSpi; import org.w3c.dom.Node; ! public class AppletResourceTest extends Applet { public static void main(String[] argv) { new AppletResourceTest().init(); } --- 48,58 ---- import javax.imageio.metadata.IIOMetadata; import javax.imageio.spi.ImageReaderSpi; import org.w3c.dom.Node; ! public class AppletResourceTest { public static void main(String[] argv) { new AppletResourceTest().init(); }
< prev index next >