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

jar tool should have an opt-out for validation when creating or updating a jar

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 18
    • tools
    • None
    • jar

    Description

      The jar tool runs validation logic when creating and updating a jar (and when running the validation explicitly).

      However, if a jar is built in multiple steps, while the final jar might be valid, one of the intermediate jars might not be. Since validation runs when using the create and update commands, as additional validation logic is added, some existing build setups might become invalid.

      There's also the argument that running the validation logic multiple times while not really needed wastes time and resources. Only the final jar needs to be validated once, not every intermediate step.

      The suggestion is to add a flag, such as '--skip-validation', that can be used when running the create or update commands, to allow such cases to continue working.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: