rebuild geeqie
[oi-userland.git] / components / runtime / openjdk-8 / patches / 0002-patch-as.patch
blob1ec9387c073b245f7f1e54e5931fd77d1bdee75d
1 $NetBSD: patch-as,v 1.1 2015/02/08 08:41:25 tnn Exp $
3 --- jdk/src/share/classes/sun/applet/AppletViewerPanel.java.orig 2015-02-02 15:37:12.000000000 +0000
4 +++ jdk/src/share/classes/sun/applet/AppletViewerPanel.java
5 @@ -42,25 +42,25 @@ import sun.tools.jar.*;
7 * @author Arthur van Hoff
8 */
9 -class AppletViewerPanel extends AppletPanel {
10 +public class AppletViewerPanel extends AppletPanel {
12 /* Are we debugging? */
13 - static boolean debug = false;
14 + protected static boolean debug = false;
16 /**
17 * The document url.
19 - URL documentURL;
20 + protected URL documentURL;
22 /**
23 * The base url.
25 - URL baseURL;
26 + protected URL baseURL;
28 /**
29 * The attributes of the applet.
31 - Hashtable atts;
32 + protected Hashtable<String,String> atts;
35 * JDK 1.1 serialVersionUID
36 @@ -70,7 +70,7 @@ class AppletViewerPanel extends AppletPa
37 /**
38 * Construct an applet viewer and start the applet.
40 - AppletViewerPanel(URL documentURL, Hashtable atts) {
41 + protected AppletViewerPanel(URL documentURL, Hashtable<String,String> atts) {
42 this.documentURL = documentURL;
43 this.atts = atts;
45 @@ -106,7 +106,7 @@ class AppletViewerPanel extends AppletPa
46 * Get an applet parameter.
48 public String getParameter(String name) {
49 - return (String)atts.get(name.toLowerCase());
50 + return atts.get(name.toLowerCase());
53 /**
54 @@ -202,12 +202,12 @@ class AppletViewerPanel extends AppletPa
55 return (AppletContext)getParent();
58 - static void debug(String s) {
59 + protected static void debug(String s) {
60 if(debug)
61 System.err.println("AppletViewerPanel:::" + s);
64 - static void debug(String s, Throwable t) {
65 + protected static void debug(String s, Throwable t) {
66 if(debug) {
67 t.printStackTrace();
68 debug(s);