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

Minor javadoc clarification for java.sql.Date.toLocalDate

    Details

    • Subcomponent:
    • Resolved In Build:
      b80

      Backports

        Description

        Clarify how toLocalDate() creates the LocalDate:

        hg diff Date.java
        diff -r 562b349a85da src/java.sql/share/classes/java/sql/Date.java
        --- a/src/java.sql/share/classes/java/sql/Date.java Tue Aug 18 20:30:15 2015 -0700
        +++ b/src/java.sql/share/classes/java/sql/Date.java Wed Aug 19 10:03:58 2015 -0400
        @@ -295,11 +295,8 @@
             }
         
             /**
        - * Converts this {@code Date} object to a {@code LocalDate}
        - * <p>
        - * The conversion creates a {@code LocalDate} that represents the same
        - * date value as this {@code Date} in local time zone
        - *
        + * Creates a {@code LocalDate} instance using the year, month and day
        + * from this {@code Date} object.
              * @return a {@code LocalDate} object representing the same date value
              *
              * @since 1.8

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lancea Lance Andersen
                  Reporter:
                  lancea Lance Andersen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: