diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-05-15 23:53:56 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-05-15 23:53:56 +0000 |
commit | 86dcea5c7a52542294c97de392803937ec111cc4 (patch) | |
tree | 09fee9460bece1c50eafaa981e3da6030f7d4695 /java/openjdk8/files/patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java | |
parent | - Update devel/libestr from 0.1.8 to 0.1.9 (diff) |
Add support for java/icedtea-web. Clean up some patches while I am here.
Notes
Notes:
svn path=/head/; revision=354182
Diffstat (limited to 'java/openjdk8/files/patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java')
-rw-r--r-- | java/openjdk8/files/patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/java/openjdk8/files/patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java b/java/openjdk8/files/patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java new file mode 100644 index 000000000000..402f0bcc50a3 --- /dev/null +++ b/java/openjdk8/files/patch-jdk-src-share-classes-sun-applet-AppletViewerPanel.java @@ -0,0 +1,66 @@ +--- jdk/src/share/classes/sun/applet/AppletViewerPanel.java ++++ jdk/src/share/classes/sun/applet/AppletViewerPanel.java +@@ -42,25 +42,25 @@ + * + * @author Arthur van Hoff + */ +-class AppletViewerPanel extends AppletPanel { ++public class AppletViewerPanel extends AppletPanel { + + /* Are we debugging? */ +- static boolean debug = false; ++ protected static boolean debug = false; + + /** + * The document url. + */ +- URL documentURL; ++ protected URL documentURL; + + /** + * The base url. + */ +- URL baseURL; ++ protected URL baseURL; + + /** + * The attributes of the applet. + */ +- Hashtable atts; ++ protected Hashtable<String,String> atts; + + /* + * JDK 1.1 serialVersionUID +@@ -70,7 +70,7 @@ + /** + * Construct an applet viewer and start the applet. + */ +- AppletViewerPanel(URL documentURL, Hashtable atts) { ++ protected AppletViewerPanel(URL documentURL, Hashtable<String,String> atts) { + this.documentURL = documentURL; + this.atts = atts; + +@@ -106,7 +106,7 @@ + * Get an applet parameter. + */ + public String getParameter(String name) { +- return (String)atts.get(name.toLowerCase()); ++ return atts.get(name.toLowerCase()); + } + + /** +@@ -202,12 +202,12 @@ + return (AppletContext)getParent(); + } + +- static void debug(String s) { ++ protected static void debug(String s) { + if(debug) + System.err.println("AppletViewerPanel:::" + s); + } + +- static void debug(String s, Throwable t) { ++ protected static void debug(String s, Throwable t) { + if(debug) { + t.printStackTrace(); + debug(s); |