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

Why is javafx.beans part of JavaFX and not of the standard JDK?

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8, 9, 10, openjfx11
    • Fix Version/s: None
    • Component/s: javafx
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      generic

      Description

      A DESCRIPTION OF THE REQUEST :
      This is as much a question as a feature request.

      The javafx.beans package is really great and I use it a lot. It is so great and universally applicable that I often find myself using it in applications that don't really use JavaFX at all. This is a problem for me, because adding the whole JavaFX dependency (And in Java 9 javafx.base) is a bit overkill for this little package and it doesn't help that getting Eclipse to work with JavaFX is a pain.

      Why has this package and functionality been put into JavaFX and not into the SDK? And is there a way to change this (or at least to decouple the beans from all the rest of JavaFX I don't need)?

      JUSTIFICATION :
      On the one hand, the package has functionality that is universally applicable and useful, even for non-JavaFX or non-GUI applications. On the other hand, the package has minimal to no apparent functionality directly tied to JavaFX that is strictly necessary for it to function correctly.

      Making it universally available in Java allows more projects to use it and thus for better and cleaner code. It also reduces the need for an external library with the same or similar purpose, thus increasing the interoperability between applications using it.

      Especially since the deprecation of the Obersvable class in Java 9, Java is lacking an easy way to create an observable pattern. In most of the cases, ad-hoc solutions fill this gap, which are mutually incompatible and just a bunch of boilerplate code. The javafx.beans package exactly fits this purpose, but its restriction to JavaFX reduces the amount of developers actually using it.


        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: