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

Error message typo in TemporalAccessor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b03
    • Verification:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: