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

Typo in code example in Java Tutorial

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: