8155071: AppletViewer should print the deprecation warning that the Applet API is deprecated
Reviewed-by: prr, smarks
--- a/jdk/src/java.desktop/share/classes/sun/applet/resources/MsgAppletViewer.java Fri May 06 12:57:37 2016 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/applet/resources/MsgAppletViewer.java Mon May 09 12:55:03 2016 +0300
@@ -73,7 +73,7 @@
{"appletviewer.parse.warning.embed.requiresheight", "Warning: <embed> tag requires height attribute."},
{"appletviewer.parse.warning.embed.requireswidth", "Warning: <embed> tag requires width attribute."},
{"appletviewer.parse.warning.appnotLongersupported", "Warning: <app> tag no longer supported, use <applet> instead:"},
- {"appletviewer.deprecated", "AppletViewer is deprecated."},
+ {"appletviewer.deprecated", "Warning: Applet API and AppletViewer are deprecated."},
{"appletviewer.usage", "Usage: appletviewer <options> url(s)\n\nwhere <options> include:\n -encoding <encoding> Specify character encoding used by HTML files\n -J<runtime flag> Pass argument to the java interpreter\n\nThe -J option is non-standard and subject to change without notice."},
{"appletviewer.main.err.unsupportedopt", "Unsupported option: {0}"},
{"appletviewer.main.err.unrecognizedarg", "Unrecognized argument: {0}"},
--- a/jdk/test/sun/applet/DeprecatedAppletViewer/DeprecatedAppletViewer.java Fri May 06 12:57:37 2016 -0700
+++ b/jdk/test/sun/applet/DeprecatedAppletViewer/DeprecatedAppletViewer.java Mon May 09 12:55:03 2016 +0300
@@ -32,7 +32,8 @@
*/
public final class DeprecatedAppletViewer {
- private static final String TEXT = "AppletViewer is deprecated.";
+ private static final String TEXT
+ = "Warning: Applet API and AppletViewer are deprecated.";
public static void main(final String[] args) {
final PrintStream old = System.err;