Remove deprecated implementation methods from Scene

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P3
    • jfx18
    • Component/s: javafx
    • 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) {
      

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

              Created:
              Updated:
              Resolved: