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

Changing "requires" to "requires static" in an application module results in build failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b33
    • CPU:
      generic
    • OS:
      generic

      Description

      I wanted to try "requires static" (optional dependency) from jdk.scripting.nashorn.shell module to java.compiler module.

      Diff for module-info.java:

      diff -r a2008587c13f src/jdk.scripting.nashorn.shell/share/classes/module-info.java
      --- a/src/jdk.scripting.nashorn.shell/share/classes/module-info.java Thu Nov 16 00:58:50 2017 +0100
      +++ b/src/jdk.scripting.nashorn.shell/share/classes/module-info.java Thu Nov 16 19:44:13 2017 +0530
      @@ -38,7 +38,7 @@
        * @since 9
        */
       module jdk.scripting.nashorn.shell {
      - requires java.compiler;
      + requires static java.compiler;
           requires jdk.internal.le;
           requires jdk.scripting.nashorn;
           requires jdk.internal.ed;


      With that change, "make images" target fails.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              erikj Erik Joelsson
              Reporter:
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: