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

Error message typo in TemporalAccessor

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • 9
    • 9
    • core-libs
    • 8
    • b03
    • Verified

    Backports

      Description

        TemporalAccessor line 220

        throw new UnsupportedTemporalTypeException("Invalid field " + field + " + for get() method, use getLong() instead");

        has a "+" within the quotes resulting in the error message "UnsupportedTemporalTypeException: Invalid field ModifiedJulianDay + for get() method, use getLong() instead"

        Fix is to remove the two characters " +":

        throw new UnsupportedTemporalTypeException("Invalid field " + field + " for get() method, use getLong() instead");

        Attachments

          Issue Links

            Activity

              People

                rriggs Roger Riggs
                scolebourne Stephen Colebourne
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: