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

[JAXP] [TESTBUG] test/javax/xml/jaxp/libs/jaxp/library/JAXPPolicyManager.java should grant permissions to jtreg, javatest, and testng jars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b147
    • Verification:
      Verified

      Description

      The current implementation of JAXPPolicyManager.java depends on the fact that the test machinery will load the testng data provider before the testng listener that sets the security manager is invoked.
      This is a bit fragile, as recent version of testng (9.6.10 - maybe earlier) have invalidated this assumption (see [1]).

      One solution to the problem would be to change JAXPPolicyManager.java to grant all permissions to the test machinery.

      [1]
      http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-November/044917.html

        Attachments

          Activity

            People

            Assignee:
            fyuan Frank Yuan (Inactive)
            Reporter:
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: