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

Typo in code example in Java Tutorial

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • 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:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: