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

A typo where the word "if" has been erroneously typed as "iff"

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      In the "Method Detail" section of the method "compareTo()" from the "Comparable" interface, the word "if" has been erroneously typed as "iff" as you could see from the following text that I've copied:

      This implies that x.compareTo(y) must throw an exception iff y.compareTo(x) throws an exception.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Comparable.html

      Click the link above and directly check the "Method Detail" section of the method "compareTo()", on the second paragraph of the description, you could easily see the erroneously typed word "iff".


      CUSTOMER SUBMITTED WORKAROUND :
      It's not a big one, simply changing "iff" to "if" would be fine.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: