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

Typo in code example in Java Tutorial

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs

      Description

      A DESCRIPTION OF THE PROBLEM :
      In the TemporalQueries section of Date/Time API trail(link - https://docs.oracle.com/javase/tutorial/datetime/iso/queries.html ) there is a typo in the first code snippet

      TemporalQueries query = TemporalQueries.precision();
      should be changed to
      TemporalQuery query = TemporalQueries.precision();
      Note the type of query variable.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Go to https://docs.oracle.com/javase/tutorial/datetime/iso/queries.html and check the first code snippet


      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            rgallard Raymond Gallardo
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: