JDK-8270310 : Deprecate for removal implementation methods in Scene
  • Type: CSR
  • Component: javafx
  • Sub-Component: scenegraph
  • Priority: P2
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: openjfx17
  • Submitted: 2021-07-12
  • Updated: 2021-07-15
  • Resolved: 2021-07-15
Related Reports
CSR :  
Description
Summary
-------

Scene exposes internal implementation details by mistake. They are made deprecated for removal.

Problem
-------

Scene has three public methods that were intended to be encapsulated as implementation details, but were mistakenly made public. These should not be part of the public API.

Solution
--------

Deprecate for removal the three public implementation methods so that they can be removed from the public API in a future version.

Specification
-------------

`javafx.scene.Scene`:

```
@@ -842,6 +842,11 @@
+    /**
+     * @deprecated This method was exposed erroneously and will be removed in a future version.
+     */
+    @Deprecated(forRemoval = true, since = "17")
     public void disposePeer()
@@ -2135,6 +2140,12 @@
+    /**
+     * @deprecated This method was exposed erroneously and will be removed in a future version.
+     * @param e undocumented method parameter
+     */
+    @Deprecated(forRemoval = true, since = "17")
     public void processKeyEvent(KeyEvent e)
@@ -2221,6 +2232,12 @@ public class Scene implements EventTarget {
+    /**
+     * @deprecated This method was exposed erroneously and will be removed in a future version.
+     * @param enable undocumented method parameter
+     */
+    @Deprecated(forRemoval = true, since = "17")
     public void enableInputMethodEvents(boolean enable)
```
Comments
Moving to Approved.
15-07-2021

Looks good to me.
15-07-2021

Moving to Provisional.
12-07-2021