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

jar tool should detect when legacy services configuration file is not in sync with module declaration

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jar

      Description

      A modular JAR containing a service provider may have a META-INF/services configuration file for cases where it is deployed no the class path rather than the module path. It's easy to get the `provides` and the configuration file out of sync. The `jar` tool currently does some sanity checks in this area but it could do more, and specifically it should warn or emit an error when the services configuration file is not in sync with the module delcaration.

        Attachments

          Activity

            People

            Assignee:
            lancea Lance Andersen
            Reporter:
            alanb Alan Bateman
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: