changeset 40131:f28fd8947dce

8156960: Deprecate JSObject.getWindow(Applet) method Reviewed-by: mchung, kcr, smarks, erikj, alexsch
author dtitov
date Thu, 21 Jul 2016 12:27:27 -0700
parents 4be22db6fb52
children d7a4847736e7
files jdk/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }