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

When ObjectProperty is local variable, it doesn't get invalidated events outside its method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • fx2.0
    • javafx
    • Windows 7

      Product: javafx-2.0beta
      Platform: windows-i586
      Build-Number: 171
      Build-ID: 2011-05-31_19-32-58

      Run the attached code. Actually it creates the "on replace" behavior in invalidated() method of local ObjectProperty that is bound to some other value. You could see that this on replace handler works directly after invocation, however, if you select items in the tree you'll not get invalidated handler executed. It looks like the object gets garbage collected. I believe this is incorrect.

            mheinrichs Michael Heinrichs (Inactive)
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: