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

JavaDoc Typo in java.time.Duration.parse()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 8
    • docs
    • x86_64
    • windows_7

      A DESCRIPTION OF THE REQUEST :
      The Last three JavaDoc examples throws an Exception (Cannot be parsed):
      https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence-

      Without Date Values it must start with "PT" :
          "PT-6H3M" -- parses as "-6 hours and +3 minutes"
          "-PT6H3M" -- parses as "-6 hours and -3 minutes"
          "-PT-6H+3M" -- parses as "+6 hours and -3 minutes"

      JUSTIFICATION :
      Wrong hints


            aroy Abhijit Roy (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: