8155071: AppletViewer should print the deprecation warning that the Applet API is deprecated
authorserb
Mon, 09 May 2016 12:55:03 +0300
changeset 38407 b1c0ed1d8270
parent 38406 3d483887b110
child 38408 3c80511b8982
8155071: AppletViewer should print the deprecation warning that the Applet API is deprecated Reviewed-by: prr, smarks
jdk/src/java.desktop/share/classes/sun/applet/resources/MsgAppletViewer.java
jdk/test/sun/applet/DeprecatedAppletViewer/DeprecatedAppletViewer.java
--- 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;