RFR: 8264770: BidirectionalBinding should use InvalidationListener to prevent boxing [v2]
Michael Strauß
mstrauss at openjdk.java.net
Fri May 14 22:30:22 UTC 2021
On Fri, 14 May 2021 21:40:39 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>>
>> added missing oldValue assignments
>
> modules/javafx.base/src/main/java/com/sun/javafx/binding/BidirectionalBinding.java line 585:
>
>> 583: private TypedGenericBidirectionalBinding(Property<T> property1, Property<T> property2) {
>> 584: super(property1, property2);
>> 585: propertyRef1 = new WeakReference<>(property1);
>
> Don't you need to initialize `oldValue` here?
>
>
> oldValue = property1.get();
Yes, it should be initialized.
-------------
PR: https://git.openjdk.java.net/jfx/pull/454
More information about the openjfx-dev
mailing list