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

Hide warning from jlink about incubating modules

XMLWordPrintable

    • b21

      The last remaining "WARNING" that is printed while building the JDK stems from jlink. This is due to the fact that jmod is run with the flag --warn-if-resolved=incubating, which will cause future processing of the jmod to print a warning.

      This is by design to get the warning to display for the end users.

      However, this also has the side-effect that our call to jlink will display this warning, unconditionally. This warning from jlink cannot be disabled, per design.

      Since we know that we have incubating modules from time to time, and it is not a warning for us, and the message cannot be removed using flags to jlink, I propose to just filter it out, so we can achieve a fully warning-free build.

      The filtering can always be disabled by running like this "make images JLINK_DISABLE_WARNINGS="

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: