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

some PrivilegedActions missing in JDK code for getting properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11, 17, 21, 22
    • client-libs
    • None
    • 2d
    • In Review
    • generic
    • generic

      There are some remaining places in 'general' JDK code (= code not related to e.g. a specific tool) getting properties like :

      osName = System.getProperty(os.name)

      https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/sun/management/VMManagementImpl.java#L225

      https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/sun/awt/FontConfiguration.java#L134

      Those should be a PrivilegedAction .

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: