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

Jlink doesn't report anything when provider is not used by anyone.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
      None

      Description

      Compile module in attached zip
      javac -d out --module-source-path . `find . -name "*.java"`

      Then run Jlink
      jlink --module-path out:jdk/jmods --output jlink-out --add-modules m4 --suggest-providers p4.Impl

      Nothing will be reported by jlink.
      Expected "Services specified in --suggest-providers not used: p4.Impl"

        Attachments

          Activity

            People

            Assignee:
            mchung Mandy Chung
            Reporter:
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: