pkgsrc/lang/openjdk7/patches/patch-as
ryoon 5e504e1a5e Update to 1.7.21 (7u21)
* Update with FreeBSD ports' patch-set file.
* Add patches from icedtea's rhino.patch file.
* Tested on NetBSD/amd64 current, NetBSD/i386 6.1, NetBSD/amd64 6.0.1,
  and DragonFly/i386 3.2.2.

Changelog:
* Unknown because I do not know previous version, 1.7.0.147.20110811.
* Many bugs and security bugs should be fixed.
2013-06-02 06:12:28 +00:00

68 lines
1.9 KiB
Text

$NetBSD: patch-as,v 1.2 2013/06/02 06:12:28 ryoon Exp $
--- jdk/src/share/classes/sun/applet/AppletViewerPanel.java.orig 2012-08-10 17:28:21.000000000 +0000
+++ jdk/src/share/classes/sun/applet/AppletViewerPanel.java
@@ -42,25 +42,25 @@ import sun.tools.jar.*;
*
* @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 @@ class AppletViewerPanel extends AppletPa
/**
* 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 @@ class AppletViewerPanel extends AppletPa
* Get an applet parameter.
*/
public String getParameter(String name) {
- return (String)atts.get(name.toLowerCase());
+ return atts.get(name.toLowerCase());
}
/**
@@ -202,12 +202,12 @@ class AppletViewerPanel extends AppletPa
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);