Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901785

jtreg's rerun command does not include --add-exports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      This may be operator error in not being intimately familiar with jtreg, but I tried to use the rerun string from a JTREG run.

      My jtreg test includes (note the @modules line):

       * @library /lib/testlibrary
       * @library /java/security/modules
       * @modules java.base/jdk.internal.module
       * @build CompilerUtils JarUtils
       * @run testng TestJCEProviderModularTest

      It failed with:

      java.lang.IllegalAccessError: class ModularTest (in unnamed module @0x63a270c9) cannot access class jdk.internal.module.ModuleInfoWriter (in module java.base) because module java.base does not export jdk.internal.module to unnamed module @0x63a270c9

      adding a:

      % diff doit.sh doit-test.sh
      25a26
      > --add-exports java.base/jdk.internal.module=ALL-UNNAMED \

      took care of the problem.

      It does include:

              -Dtest.modules=java.base/jdk.internal.module \

      but this doesn't seem to allow for the access.

            cstein Christian Stein
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: