RFR: 8243115: Spurious invalidations due to bug in IntegerBinding and other classes
John Hendrikx
jhendrikx at openjdk.java.net
Tue May 12 17:49:36 UTC 2020
On Tue, 12 May 2020 15:56:32 GMT, Nir Lisker <nlisker at openjdk.org> wrote:
> The fix looks correct and the tests pass. I just wonder why the change to reflection-based construction with
> `bindingMockClassConstructor`?
The Parameterized test constructs some standard Binding objects to run multiple tests with. This works fine if those
objects are immutable (or aren't modified during the tests). My new test however does modify them, and other tests
would fail with such modified objects (as `unbind` was called on some). So I rewrote this a little bit to construct
fresh objects for each test, and for that I used some reflection magic to avoid having to write a specific test for
each of the 8 binding types.
-------------
PR: https://git.openjdk.java.net/jfx/pull/198
More information about the openjfx-dev
mailing list