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

Typo in code example in Java Tutorial

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • docs

      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


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

              Created:
              Updated:
              Resolved: