8156960: Deprecate JSObject.getWindow(Applet) method
Reviewed-by: mchung, kcr, smarks, erikj, alexsch
--- 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);
}