Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8342441

☂ Remove all calls to doPrivileged

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Delivered
    • Icon: P3 P3
    • jfx24
    • jfx24
    • javafx

      This is an umbrella task to remove all AccessController.doPrivileged from all JavaFX code. Separate linked blocking bugs will be filed for each component area.

      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

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: