[jfx19] RFR: 8290348: TreeTableView jumping to top [v2]
Kevin Rushforth
kcr at openjdk.org
Wed Jul 20 15:34:19 UTC 2022
On Sun, 17 Jul 2022 18:59:22 GMT, Johan Vos <jvos at openjdk.org> wrote:
>> Do not recalculate total estimated size recursively.
>>
>> In the (unlikely) event that the recalculation triggers a new recalculation (e.g. when the height of a Cell is changed), do not start this recalculation.
>> The cache and cache size may become inconsistent if a recursive calculation is started.
>> This fixes JDK-8290348
>
> Johan Vos has updated the pull request incrementally with one additional commit since the last revision:
>
> fix issue with IDE-indicated unused statement
modules/javafx.controls/src/main/java/javafx/scene/control/skin/VirtualFlow.java line 3113:
> 3111: adjustPosition();
> 3112: }
> 3113: recalculating = false;
Is it likely that this method might get an exception? I was wondering whether the assignment to false should be in a try / finally. If there is no probable way an exception could occur, or if an exception is non-recoverable (which is quite possible), then no need for a try / finally.
-------------
PR: https://git.openjdk.org/jfx/pull/836
More information about the openjfx-dev
mailing list