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

Incorrect description of UnsupportedTemporalTypeException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8, 11, 15
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10
      Eclipse Version: 2020-03 (4.15.0) Build id: 20200313-1211
      with Java version 1.8.0_221

      A DESCRIPTION OF THE PROBLEM :
      Duration d = Duration.ofMillis(2);
      LocalDate ld = LocalDate.now().plus(d);

      yields

      Exception in thread "main" java.time.temporal.UnsupportedTemporalTypeException: Unsupported unit: Nanos

      Should say "Unsupported mlllis" (not nanos)





      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              rriggs Roger Riggs
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: