-
CSR
-
Resolution: Approved
-
P3
-
None
-
source, binary
-
low
-
These implementation methods mistakenly showed up in FX for JDK 9 with no API documentation. It's possible that some applications were calling them, although it is unlikely.
-
Java API
-
JDK
Summary
Remove three terminally deprecated implementation methods from Scene.
Problem
Scene has three public methods that were intended to be encapsulated as implementation details, but were mistakenly made public. These methods were deprecated in JavaFX 17 by JDK-8270246 and should be removed in JavaFX 18.
Solution
Remove the three terminally deprecated implementation methods from Scene by changing the access modifier on each method from public
to (default) package-scope.
Specification
javafx.scene.Scene
:
- /**
- * @deprecated This method was exposed erroneously and will be removed in a future version.
- */
- @Deprecated(forRemoval = true, since = "17")
- public void disposePeer() {
+ void disposePeer() {
- /**
- * @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) {
+ void processKeyEvent(KeyEvent e) {
- /**
- * @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) {
+ void enableInputMethodEvents(boolean enable) {
- csr of
-
JDK-8270839 Remove deprecated implementation methods from Scene
-
- Resolved
-