A DESCRIPTION OF THE PROBLEM :
In the link https://docs.oracle.com/javase/tutorial/datetime/iso/queries.html there's the following example:
TemporalQueries query = TemporalQueries.precision();
The same page, at the top, also says: "The Java Tutorials have been written for JDK 8".
But this code doesn't compile in JDK 8, it gives the error:
Type mismatch: cannot convert from TemporalQuery<TemporalUnit> to TemporalQueries
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The variable should have the correct type:
TemporalQuery<TemporalUnit> query = TemporalQueries.precision();
ACTUAL -
TemporalQueries query = TemporalQueries.precision();
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/tutorial/datetime/iso/queries.html
In the link https://docs.oracle.com/javase/tutorial/datetime/iso/queries.html there's the following example:
TemporalQueries query = TemporalQueries.precision();
The same page, at the top, also says: "The Java Tutorials have been written for JDK 8".
But this code doesn't compile in JDK 8, it gives the error:
Type mismatch: cannot convert from TemporalQuery<TemporalUnit> to TemporalQueries
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The variable should have the correct type:
TemporalQuery<TemporalUnit> query = TemporalQueries.precision();
ACTUAL -
TemporalQueries query = TemporalQueries.precision();
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/tutorial/datetime/iso/queries.html