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

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • tools
    • None
    • jar

      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.

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

              Created:
              Updated: