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

Jar tool can not correctly find/process the --release option if it occurs before the file list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • tools
    • jar
    • b141

      If jar tool options are written with the new gnu style, then if the --release option is specified before any files are specified, the
       --release option is treated as an unrecognized option. The work around is to use the old style options until this issue is fixed.

      These examples fail:
         jar --create --file=test.jar --release 9 test1

         jar --create --file=test.jar -C test1 .
         jar --update --file=test.jar --release 9 -C test1 .

      And these examples do not fail:
         jar cf test.jar --release 9 test1

         jar -cf test.jar -C test1 .
         jar -uf test.jar --release 9 -C test1 .

         jar --create --file=test.jar -C test1 .
         jar --update --file=test.jar test2 --release 9 -C test1 .

            sdrach Steve Drach (Inactive)
            sdrach Steve Drach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: