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

Remove GTK2

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 24
    • client-libs
    • None
    • behavioral
    • low
    • Hide
      This is unlikely to have any impact on supported configurations, and limited impact on even unsupported ones.
      OL 6 and RHEL 6 are the most recent supported distros to support only GTK 2 and they will reach EOSL before JDK 24 GA.
      Removing this support will not prevent JDK from running on those versions, it will only prevent the GTK Look And Feel from being set.
      The initial L&F will remain set and work.
      Show
      This is unlikely to have any impact on supported configurations, and limited impact on even unsupported ones. OL 6 and RHEL 6 are the most recent supported distros to support only GTK 2 and they will reach EOSL before JDK 24 GA. Removing this support will not prevent JDK from running on those versions, it will only prevent the GTK Look And Feel from being set. The initial L&F will remain set and work.
    • System or security property
    • Implementation

      Summary

      Remove the JDK code that supports using the GTK2 Linux desktop platform library.

      Problem

      JDK's java.desktop module has internal code that interoperates with multiple versions of the GTK platform library. This is primarily to support the Swing GTK LookAndFeel.

      JDK still includes the support for interoperating with the GTK 2 version library which is reaching its end of life. GTK 3 long ago superseded it and is supported by JDK as the preferred default, in which case to use GTK 2, apps must request it using the jdk.gtk.version system property. And since many recent distros make GTK 2 only an optional install, it may require extra work to use it, and future distros will likely not provide any way to install it.

      Solution

      Since all versions of Linux to be supported by JDK 24 provide GTK3, it is time to remove the GTK2 support in JDK.

      Specification

      Setting the jdk.gtk.version property to 2 or 2.2 will no longer have any effect, GTK 3 will be loaded.

            azvegint Alexander Zvegintsev
            prr Philip Race
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: