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

Deprecate for removal implementation methods in Scene

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P2
    • Resolution: Approved
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      source
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      No change in behavior other than a deprecation removal warning at compile time.
    • Interface Kind:
      Java API
    • Scope:
      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

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

                Dates

                Created:
                Updated:
                Resolved: