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

bindBidirection works for ReadOnly*Wrapper incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u31
    • javafx
    • java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)

        ReadOnlyStringWrapper a = new ReadOnlyStringWrapper("a");
        ReadOnlyStringWrapper b = new ReadOnlyStringWrapper("b");

        b.bindBidirectional(a);
        //a.bindBidirectional(b); //only this can fix it

        a.set("a1"); // a == "a1",b == "a1"
        b.set("b1"); // b == "b1", a == "a1" (!!!)

        a.set("a2"); // a == "a2",b == "a2"
        b.set("b2"); // b == "b2", a == "a2" (!!!)

              vadim Vadim Pakhnushev
              duke J. Duke
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: