8156960: Deprecate JSObject.getWindow(Applet) method
authordtitov
Thu, 21 Jul 2016 12:27:27 -0700
changeset 40131 f28fd8947dce
parent 40130 4be22db6fb52
child 40132 d7a4847736e7
8156960: Deprecate JSObject.getWindow(Applet) method Reviewed-by: mchung, kcr, smarks, erikj, alexsch
jdk/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java
--- a/jdk/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java	Thu Jul 21 20:30:18 2016 +0530
+++ b/jdk/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java	Thu Jul 21 12:27:27 2016 -0700
@@ -149,7 +149,13 @@
      * {@code null} if we are not connected to a browser.
      * @throws JSException when an error is reported from the browser or
      * JavaScript engine or if applet is {@code null}
+     *
+     * @deprecated  The Applet API is deprecated. See the
+     * <a href="../../../../../../api/java/applet/package-summary.html">
+     * java.applet package documentation</a> for further information.
      */
+
+    @Deprecated(since = "9")
     public static JSObject getWindow(Applet applet) throws JSException {
         return ProviderLoader.callGetWindow(applet);
     }