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

Error message typo in TemporalAccessor

XMLWordPrintable

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

        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");

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

                Created:
                Updated:
                Resolved: