-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
None
-
x86
-
linux
A DESCRIPTION OF THE PROBLEM :
The page gives the following example:
Instant oneHourLater = Instant.now().plusHours(1);
This example is incorrect and will not compile. plusHours is not a method for Instant
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Instant oneHourLater = Instant.now().plus(1, ChronoUnit.HOURS);
ACTUAL -
Instant oneHourLater = Instant.now().plusHours(1);
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/tutorial/datetime/iso/instant.html
The page gives the following example:
Instant oneHourLater = Instant.now().plusHours(1);
This example is incorrect and will not compile. plusHours is not a method for Instant
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Instant oneHourLater = Instant.now().plus(1, ChronoUnit.HOURS);
ACTUAL -
Instant oneHourLater = Instant.now().plusHours(1);
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/tutorial/datetime/iso/instant.html