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

Cannot access class jdk.xml.internal.SecuritySupport

XMLWordPrintable

    • generic
    • generic
    • Not verified

      ADDITIONAL SYSTEM INFORMATION :
      MacOS. But should be the same on all.

      A DESCRIPTION OF THE PROBLEM :
      cannot access class jdk.xml.internal.SecuritySupport (in module java.xml) because module java.xml does not export jdk.xml.internal to unnamed module

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      create the following code:
      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
      try to run it.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Test succeeds like it did in java 8 even now that i'm in java 11.
      ACTUAL -
      stacktrace about missing permission to access internal class referenced from core jdk code.

      ---------- BEGIN SOURCE ----------
      JUnitTest:

      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

      ---------- END SOURCE ----------

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: