Re: RFR: 8223717: javafx printing: Support Specifying Print to File in the API [v6]

2021-07-06 Thread Prasanta Sadhukhan
On Thu, 1 Jul 2021 00:38:25 GMT, Phil Race wrote: >> This enhancement adds the String property outputFileProperty() to the >> JobSettings class. >> The value should be a string that references a local file encoded as a URL. >> If this is non-null and set to a location that the user has

RFR: 8231644: TreeTableView Regression: Indentation wrong using Label as column content type

2021-07-06 Thread Marius Hanl
This PR fixes a long standing issue with the TreeTableView indentation. ![image](https://user-images.githubusercontent.com/66004280/124681647-473e7380-dec9-11eb-906d-4228fc39cbf9.png) In short: **TreeTableCellSkin** overrides **leftLabelPadding()** to calculate the indentation (the result of

Re: RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12 [v2]

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 23:32:23 GMT, Kevin Rushforth wrote: >> This fix restores the minimum macOS version needed to run JavaFX on x64 >> platforms to 10.10. >> >> The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) >> bumped the minimum version for macOS on aarch64 to

Re: RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12 [v3]

2021-07-06 Thread Kevin Rushforth
> This fix restores the minimum macOS version needed to run JavaFX on x64 > platforms to 10.10. > > The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) > bumped the minimum version for macOS on aarch64 to 11.0 and on x64 to 10.12. > The change on aarch64 was necessary,

Re: RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 22:33:47 GMT, Kevin Rushforth wrote: > This fix restores the minimum macOS version needed to run JavaFX on x64 > platforms to 10.10. > > The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) > bumped the minimum version for macOS on aarch64 to 11.0 and

Re: RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12 [v2]

2021-07-06 Thread Kevin Rushforth
> This fix restores the minimum macOS version needed to run JavaFX on x64 > platforms to 10.10. > > The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) > bumped the minimum version for macOS on aarch64 to 11.0 and on x64 to 10.12. > The change on aarch64 was necessary,

Withdrawn: 8266743: crash on macOS 10.11 due to ignored check on 10.12

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 22:01:04 GMT, Kevin Rushforth wrote: > This fix restores the minimum macOS version needed to run JavaFX on x64 > platforms to 10.10. > > The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) > bumped the minimum version for macOS on aarch64 to 11.0 and

Re: RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 22:33:47 GMT, Kevin Rushforth wrote: > This fix restores the minimum macOS version needed to run JavaFX on x64 > platforms to 10.10. > > The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) > bumped the minimum version for macOS on aarch64 to 11.0 and

RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12

2021-07-06 Thread Kevin Rushforth
This fix restores the minimum macOS version needed to run JavaFX on x64 platforms to 10.10. The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) bumped the minimum version for macOS on aarch64 to 11.0 and on x64 to 10.12. The change on aarch64 was necessary, since that

Re: RFR: 8266743: crash on macOS 10.11 due to ignored check on 10.12

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 22:01:04 GMT, Kevin Rushforth wrote: > This fix restores the minimum macOS version needed to run JavaFX on x64 > platforms to 10.10. > > The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) > bumped the minimum version for macOS on aarch64 to 11.0 and

RFR: 8263169: crash on macOS 10.11 due to ignored check on 10.12

2021-07-06 Thread Kevin Rushforth
This fix restores the minimum macOS version needed to run JavaFX on x64 platforms to 10.10. The fix for [JDK-8265031](https://bugs.openjdk.java.net/browse/JDK-8265031) bumped the minimum version for macOS on aarch64 to 11.0 and on x64 to 10.12. The change on aarch64 was necessary, since that

Integrated: 8269131: Update libxml2 to version 2.9.12

2021-07-06 Thread Ambarish Rapte
On Thu, 1 Jul 2021 15:46:53 GMT, Ambarish Rapte wrote: > We currently use libxml2 version 2.9.10. It should be updated to latest > stable release, which is version 2.9.12. > The steps to update libxml are documented in UPDATING.txt. This pull request has now been integrated. Changeset:

Re: RFR: 8240506: TextFieldSkin/Behavior: misbehavior on switching skin

2021-07-06 Thread Ambarish Rapte
On Thu, 17 Jun 2021 12:41:56 GMT, Jeanette Winzenburg wrote: > The issue is about memory leaks and side-effects (like NPEs) when switching > skins. > > Details (copied from issue for convenience): > > memory leak in TextInputControlBehavior: > - listener accidentally added twice (removed

Re: RFR: 8240506: TextFieldSkin/Behavior: misbehavior on switching skin

2021-07-06 Thread Ambarish Rapte
On Fri, 2 Jul 2021 22:58:02 GMT, Marius Hanl wrote: >> Okay, went through listener registrations in all behaviors - and they are >> indeed inconsistent: >> >> - some listen to control properties like focused (f.i. Button, Combo): >> adding strong, often inline listeners >> - some listen to

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v2]

2021-07-06 Thread Marius Hanl
On Mon, 5 Jul 2021 13:06:48 GMT, Jeanette Winzenburg wrote: >> Marius Hanl has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - removed now unused imports >> - Review adjustments > >

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-06 Thread Marius Hanl
> This PR fixes 2 NPEs in Choice-and ComboBox, when the selection model is null. > > ChoiceBox: > - Null check in **valueProperty()** listener > > ComboBox: > - Null check in **valueProperty()** listener > - Null check in **ComboBoxListViewSkin#updateValue()** > > The tests checks, that no NPE

Re: RFR: 8269131: Update libxml2 to version 2.9.12 [v2]

2021-07-06 Thread Johan Vos
On Fri, 2 Jul 2021 11:30:30 GMT, Ambarish Rapte wrote: >> We currently use libxml2 version 2.9.10. It should be updated to latest >> stable release, which is version 2.9.12. >> The steps to update libxml are documented in UPDATING.txt. > > Ambarish Rapte has updated the pull request

Re: RFR: 8269597: Change JavaFX release version to 18

2021-07-06 Thread Ambarish Rapte
On Tue, 29 Jun 2021 14:21:27 GMT, Kevin Rushforth wrote: > Bump the version number of JavaFX to 18. I will integrate this immediately > after forking the `jfx17` stabilization branch, which is scheduled for > Thursday, July 8, 2021 at 16:00 UTC. > > ~~Leaving it as `Draft` for now. I'll make

Re: RFR: 8269597: Change JavaFX release version to 18

2021-07-06 Thread Johan Vos
16 and 17-ea builds are already on maven central, e.g. see https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/ - Johan On Tue, Jul 6, 2021 at 3:47 PM Chuck Davis wrote: > Anybody know if Maven central is ever going to be updated for 16 and 17? > > On Tue, Jul 6, 2021 at 5:58 AM Kevin

Re: RFR: 8269597: Change JavaFX release version to 18

2021-07-06 Thread Pankaj Bansal
On Tue, 29 Jun 2021 14:21:27 GMT, Kevin Rushforth wrote: > Bump the version number of JavaFX to 18. I will integrate this immediately > after forking the `jfx17` stabilization branch, which is scheduled for > Thursday, July 8, 2021 at 16:00 UTC. > > ~~Leaving it as `Draft` for now. I'll make

Re: RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues [v2]

2021-07-06 Thread Florian Kirmaier
On Tue, 6 Jul 2021 15:07:26 GMT, Florian Kirmaier wrote: >> modules/javafx.graphics/src/main/java/javafx/scene/text/Text.java line 386: >> >>> 384: private GlyphList[] getRuns() { >>> 385: if (textRuns != null) return textRuns; >>> 386: if (!isSpan()) { >> >> Removing the

Re: RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues [v2]

2021-07-06 Thread Florian Kirmaier
On Tue, 6 Jul 2021 14:58:49 GMT, Kevin Rushforth wrote: >> Florian Kirmaier has updated the pull request incrementally with one >> additional commit since the last revision: >> >> JDK-8269921 >> Added a copyright header > > modules/javafx.graphics/src/main/java/javafx/scene/text/Text.java

Re: RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues [v2]

2021-07-06 Thread Florian Kirmaier
> It's "a bit" complicated. > In some situations, getRuns get's called because listeners on bounds are set. > This causes TextFlow to layout to compute the runs. > Afterward, the bounds of the parents get updated. > This triggers a call to compute bounds - which cascades up to the children. >

Re: RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues

2021-07-06 Thread Kevin Rushforth
You mean TextFlow (not MultipleSelectionModel), right? This doesn't look like it has anything to do with selection. -- Kevin On 7/6/2021 7:56 AM, Florian Kirmaier wrote: Hi everyone, I've developed a fix for an exception in the MultipleSelectionModel. Can someone look into it?

Re: RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 14:53:24 GMT, Florian Kirmaier wrote: > It's "a bit" complicated. > In some situations, getRuns get's called because listeners on bounds are set. > This causes TextFlow to layout to compute the runs. > Afterward, the bounds of the parents get updated. > This triggers a call

RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues

2021-07-06 Thread Florian Kirmaier
It's "a bit" complicated. In some situations, getRuns get's called because listeners on bounds are set. This causes TextFlow to layout to compute the runs. Afterward, the bounds of the parents get updated. This triggers a call to compute bounds - which cascades up to the children. When the

RFR: JDK-8269921 Text in Textflow and listeners on bounds can cause endless loop/crash and other performance issues

2021-07-06 Thread Florian Kirmaier
Hi everyone, I've developed a fix for an exception in the MultipleSelectionModel. Can someone look into it? https://github.com/openjdk/jfx/pull/564 Greetings Florian Kirmaier

Re: JavaFX 16 and 17 artifacts on maven central [was: RFR: 8269597: Change JavaFX release version to 18]

2021-07-06 Thread Chuck Davis
Maybe it's a Netbeans indexing problem then because Netbeans does not see 16GA or 17EA. Thanks for info. Last thing NB sees is 16-ea+6. On Tue, Jul 6, 2021 at 6:58 AM Kevin Rushforth wrote: > [starting a new thread so this doesn't show up as a review comment in > the PR] > > There already are

Re: RFR: 8268849: Update to 612.1 version of WebKit [v2]

2021-07-06 Thread Kevin Rushforth
On Tue, 6 Jul 2021 10:39:40 GMT, Ambarish Rapte wrote: >> Update JavaFX WebKit to GTK WebKit 2.32 (612.1). >> There are two separate commits: >> 1. >> [commit](https://github.com/openjdk/jfx/commit/ed0baf5f23aed0d8aaa72645c8e03fde56d0f0cc) >> : includes only native changes >> 2. >>

JavaFX 16 and 17 artifacts on maven central [was: RFR: 8269597: Change JavaFX release version to 18]

2021-07-06 Thread Kevin Rushforth
[starting a new thread so this doesn't show up as a review comment in the PR] There already are JavaFX 16 GA artifacts on maven central. Also, there are JavaFX 17-ea artifacts. -- Kevin On 7/6/2021 6:45 AM, Chuck Davis wrote: Anybody know if Maven central is ever going to be updated for

Re: RFR: 8269597: Change JavaFX release version to 18

2021-07-06 Thread Chuck Davis
Anybody know if Maven central is ever going to be updated for 16 and 17? On Tue, Jul 6, 2021 at 5:58 AM Kevin Rushforth wrote: > Bump the version number of JavaFX to 18. I will integrate this immediately > after forking the `jfx17` stabilization branch, which is scheduled for > Thursday, July

RFR: 8269597: Change JavaFX release version to 18

2021-07-06 Thread Kevin Rushforth
Bump the version number of JavaFX to 18. I will integrate this immediately after forking the `jfx17` stabilization branch, which is scheduled for Thursday, July 8, 2021 at 16:00 UTC. Leaving it as `Draft` for now. I'll make it `rfr` next week. - Commit messages: - 8269597: Change

Re: TableCell: how to find the origin of fishy code?

2021-07-06 Thread Jeanette Winzenburg
forgot: the null check for table might have been introduced at some time due to (arguably illegal, at least unspecified, see https://bugs.openjdk.java.net/browse/JDK-8269871) precondition of CellEditEvent requiring a not-null table. If we decide to keep that requirement (and solve the

Re: TableCell: how to find the origin of fishy code?

2021-07-06 Thread Jeanette Winzenburg
fyi: the inconsistently must be resolved (back) to checking for column != null in all edit methods. The reason is that the event is fired onto the column as target, which must be not null. Can be seen in the test below (concededly very artificial): @Test public void

Re: RFR: 8268849: Update to 612.1 version of WebKit [v2]

2021-07-06 Thread Ambarish Rapte
On Thu, 1 Jul 2021 22:03:48 GMT, Kevin Rushforth wrote: >> Ambarish Rapte has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - remove unwanted file >> - comment failing test code > >

Re: RFR: 8268849: Update to 612.1 version of WebKit [v2]

2021-07-06 Thread Ambarish Rapte
> Update JavaFX WebKit to GTK WebKit 2.32 (612.1). > There are two separate commits: > 1. > [commit](https://github.com/openjdk/jfx/commit/ed0baf5f23aed0d8aaa72645c8e03fde56d0f0cc) > : includes only native changes > 2. >

Re: TableCell: how to find the origin of fishy code?

2021-07-06 Thread Jeanette Winzenburg
Hi Jonathan, thanks for quick reply :) Yeah, agree that inconsistency looks unintentional - leaving the question which way to go. Meanwhile I found the commit that changed the logic for cancel: since RT-18513 (https://bugs.openjdk.java.net/browse/JDK-8116392 - ListView stackoverflow) it

Re: TableCell: how to find the origin of fishy code?

2021-07-06 Thread Jonathan Giles
Seeing as I wrote the code, I wish I could remember why it is that way, but I unfortunately can't. My initial instinct is that this was unintentional, but I can't discount the possibility that a reason exists. I probably have much earlier versions of the code lying around, so I could research it

TableCell: how to find the origin of fishy code?

2021-07-06 Thread Jeanette Winzenburg
Just noticed an inconsistency in event firing pattern in tableCell's xxEdit methods: the pattern in cancel/commit: if (table != null) { // create and fire the event in start: if (column != null) { // create and fire the event usual question: bug or feature? Could

Integrated: 8187229: Tree/TableCell: cancel event must return correct editing location

2021-07-06 Thread Jeanette Winzenburg
On Thu, 1 Jul 2021 12:38:06 GMT, Jeanette Winzenburg wrote: > the bug is an incorrect edit location (for Tree/Table: Tree/TablePosition) in > edit cancel events - expected is the location at the time the cell edit was > started, actual was the location of at the time the edit was cancelled.

Re: RFR: 8187229: Tree/TableCell: cancel event must return correct editing location [v2]

2021-07-06 Thread Marius Hanl
On Mon, 5 Jul 2021 10:18:15 GMT, Jeanette Winzenburg wrote: >> the bug is an incorrect edit location (for Tree/Table: Tree/TablePosition) >> in edit cancel events - expected is the location at the time the cell edit >> was started, actual was the location of at the time the edit was

MemoryLeak: Scene.dirtyNodes and Parent.removed

2021-07-06 Thread Florian Kirmaier
Hi everyone, I was hunting for some memory leaks, but I think I need some help/feedback/thoughts on this one. ticket: https://bugs.openjdk.java.net/browse/JDK-8269907 A unit test can be found in the ticket. Florian Kirmaier

Re: RFR: 8187229: Tree/TableCell: cancel event must return correct editing location [v2]

2021-07-06 Thread Ajit Ghaisas
On Mon, 5 Jul 2021 10:18:15 GMT, Jeanette Winzenburg wrote: >> the bug is an incorrect edit location (for Tree/Table: Tree/TablePosition) >> in edit cancel events - expected is the location at the time the cell edit >> was started, actual was the location of at the time the edit was