Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1403

[Jigsaw] [Java 9] add "--add-modules java.se.ee" to forked CLI argument

    XMLWordPrintableJSON

Details

    Description

      Calling findClass( cls, "java.se.ee") in IsolatedClassLoader does not help and does not do anything because the module is ignored in Java 9.

      In-plugin provider does not have any problem to load classes from entire JDK.

      Forked JVM would work only after added
      <argLine>--add-modules java.se.ee</argLine>

      The fix would be to add "-add-modules java.se.ee" if -add-modules is not specified by user at Java 9+.

      Attachments

        1. surefire-1403.zip
          3 kB
          Robert Scholte

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              tibordigana Tibor Digana
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: