There are 350 such calls in 168 files. See the attached list.
As part of this, the following classes should also be examined, and likely removed:
PrivilegedAction
PrivilegedExceptionAction
PrivilegedActionException
In most cases, these will naturally disappear as a result of removing the doPrivileged calls. In a few places we use the pattern of having a private class implement PrivilegedAction. For these cases, the easiest fix is likely to have the class to implement Callable instead, changing the `run` method of the class to `call`.
Here is a breakdown by module / component area listing the number of files in each. I will file 7 separate bugs as follows:
1. javafx.base : 20
2. controls, fxml, media, swing, swt : 21
- javafx.controls : 6
- javafx.fxml : 4
- javafx.media : 4
- javafx.swing : 5
- javafx.swt : 2
3. javafx.graphics/com.sun.javafx.tk : 18
4. javafx.graphics/com.sun.ui.glass : 35
5. javafx.graphics/other : 51
6. javafx.web : 17
7. javafx.web/{ios,android} : 6
- is blocked by
-
JDK-8342453 Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk
- Resolved
-
JDK-8342454 Remove calls to doPrivileged in javafx.graphics/com.sun.glass
- Resolved
-
JDK-8342456 Remove calls to doPrivileged in javafx.graphics/other
- Resolved
-
JDK-8342457 Remove calls to doPrivileged in swing
- Resolved
-
JDK-8342459 Remove calls to doPrivileged in javafx.base
- Resolved
-
JDK-8342460 Remove calls to doPrivileged in javafx.web
- Resolved
-
JDK-8342911 Remove calls to doPrivileged in controls
- Resolved
-
JDK-8342912 Remove calls to doPrivileged in fxml
- Resolved
-
JDK-8342913 Remove calls to doPrivileged in media
- Resolved
-
JDK-8342914 Remove calls to doPrivileged in swt
- Resolved
-
JDK-8341090 Remove support for security manager from JavaFX
- Resolved
- relates to
-
JDK-8342461 Remove calls to doPrivileged in javafx.web/{android,ios}
- Resolved