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

Support hard-referenced bidirectional bindings

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • None
    • javafx
    • None

    Description

      Standard bindings keep a hard-ref to the bound observable, which allow you to do some property views like:

      objProperty.bind(intProperty.asObject());

      The asObject() would would not be GC'ed as the property references the view.

      With bidirectional bindings, the view will be lost however, as bidirectional bindings are weak.
      We should introduce a variant of bidirectional bindings that would use hard references and the developer would be responsible for freeing the resources.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              msladecek Martin Sládeček
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Imported: