Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8270310

Deprecate for removal implementation methods in Scene

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P2
    • jfx17
    • javafx
    • None
    • source
    • minimal
    • No change in behavior other than a deprecation removal warning at compile time.
    • Java API
    • JDK

    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)

      Attachments

        Issue Links

          Activity

            People

              kcr Kevin Rushforth
              kcr Kevin Rushforth
              Ambarish Rapte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: