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

tzupdater tool allowed wrong option

XMLWordPrintable

    • b01
    • generic
    • generic

      tzupdater tool v1.3.5 allowed wrong option
      reproduced always,not a regression

      How to reproduce
      Run {JAVA_HOME}/bin/java -jar tzupdater.jar -f --backwardcompatible_wrongopt -v

      Expected result:
      ================
      Unknown option: --backwardcompatible_wrongopt
      Usage: java -jar tzupdater.jar options
      options:
        -h, --help Print this message and exit.
        -V, --version Print tool version, tzdata version nos. of JRE and embedded one and exit.
        -u, --update Update time zone data.
        -f, --force Force to update tzdata.
        -bc, --backwardcompatible
                       Keep JDK1.1 time zone ID compatibility. Requires -u, -f or -t.
        -t, --test Perform verification tests and exit.
        -v, --verbose Display detailed messages to stdout.

      Actual result:
      ==============
      java.home: C:\JDK\tz\jdk1.5.0_14\jre
      java.vendor: Sun Microsystems Inc.
      java.version: 1.5.0_14-rev
      JRE time zone data version: tzdata2008b
      Embedded time zone data version: tzdata2008b
      Extracting files... done.
      Making changes for JDK 1.1 compatibiltiy... done.
      Renaming directories... done.
      Validating the new time zone data... done.
      Time zone data update is complete.

            asaha Abhijit Saha
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: