Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-31 Thread Kevin Rushforth
On Thu, 31 Oct 2024 15:01:41 GMT, Glavo wrote: >> Kevin Rushforth has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review comments > > modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassViewEventHandler.java > line 69:

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-31 Thread Glavo
On Wed, 30 Oct 2024 20:43:07 GMT, Kevin Rushforth wrote: >> This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the >> `javafx.graphics` module. >> >> Here is a quick overview of what I did for this fix: >> >> 1. Changed all simple cases of `doPrivileged((PrivilegedAction) ()

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Andy Goryachev
On Wed, 30 Oct 2024 22:51:30 GMT, Kevin Rushforth wrote: >> This looks useful. >> I wonder if it would make sense to create a utility method in some common >> Util class? >> >> >> public static boolean initBoolean(BooleanSupplier c) { return >> c.getAsBoolean(); } >> >> >> edit: >> maybe in

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Andy Goryachev
On Wed, 30 Oct 2024 20:43:07 GMT, Kevin Rushforth wrote: >> This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the >> `javafx.graphics` module. >> >> Here is a quick overview of what I did for this fix: >> >> 1. Changed all simple cases of `doPrivileged((PrivilegedAction) ()

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Kevin Rushforth
On Wed, 30 Oct 2024 20:44:39 GMT, Andy Goryachev wrote: >> I decided to make this change. Thanks for the suggestion. > > This looks useful. > I wonder if it would make sense to create a utility method in some common > Util class? > > > public static boolean initBoolean(BooleanSupplier c) { ret

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Michael Strauß
On Wed, 30 Oct 2024 20:43:07 GMT, Kevin Rushforth wrote: >> This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the >> `javafx.graphics` module. >> >> Here is a quick overview of what I did for this fix: >> >> 1. Changed all simple cases of `doPrivileged((PrivilegedAction) ()

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Andy Goryachev
On Wed, 30 Oct 2024 20:40:01 GMT, Kevin Rushforth wrote: >> That's an interesting suggestion: trading a new method for a lambda (the >> prior code used a lambda to pass to the doPrivileged, so it's also less of a >> delta). I'll take a look at it and see if it looks better to me. > > I decided

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Kevin Rushforth
> This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the > `javafx.graphics` module. > > Here is a quick overview of what I did for this fix: > > 1. Changed all simple cases of `doPrivileged((PrivilegedAction) () -> > LAMBDA)` to `LAMBDA`, removing the `@SuppressWarnings("rem

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]

2024-10-30 Thread Kevin Rushforth
On Tue, 29 Oct 2024 22:46:30 GMT, Kevin Rushforth wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumToolkit.java >> line 142: >> >>> 140: >>> 141: private static final boolean multithreaded = initMultithreaded(); >>> 142: private static boolean initMultit

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

2024-10-29 Thread Kevin Rushforth
On Tue, 29 Oct 2024 00:56:27 GMT, Michael Strauß wrote: >> This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the >> `javafx.graphics` module. >> >> Here is a quick overview of what I did for this fix: >> >> 1. Changed all simple cases of `doPrivileged((PrivilegedAction) ()

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

2024-10-28 Thread Michael Strauß
On Wed, 23 Oct 2024 20:10:02 GMT, Kevin Rushforth wrote: > This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the > `javafx.graphics` module. > > Here is a quick overview of what I did for this fix: > > 1. Changed all simple cases of `doPrivileged((PrivilegedAction) () -> >

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

2024-10-28 Thread Andy Goryachev
On Wed, 23 Oct 2024 20:10:02 GMT, Kevin Rushforth wrote: > This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the > `javafx.graphics` module. > > Here is a quick overview of what I did for this fix: > > 1. Changed all simple cases of `doPrivileged((PrivilegedAction) () -> >

Re: RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

2024-10-28 Thread Kevin Rushforth
On Wed, 23 Oct 2024 20:10:02 GMT, Kevin Rushforth wrote: > This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the > `javafx.graphics` module. > > Here is a quick overview of what I did for this fix: > > 1. Changed all simple cases of `doPrivileged((PrivilegedAction) () -> >

RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk

2024-10-28 Thread Kevin Rushforth
This PR removes all doPrivileged calls from `com.sun.javafx.tk**` in the `javafx.graphics` module. Here is a quick overview of what I did for this fix: 1. Changed all simple cases of `doPrivileged((PrivilegedAction) () -> LAMBDA)` to `LAMBDA`, removing the `@SuppressWarnings("removal")` if pos