-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
23
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Suse Tumbleweed latest with JDK 23
A DESCRIPTION OF THE PROBLEM :
Creating a ZonedDateTime from an Instant gives an error in both Netbeans and Eclipse.
API doc: static ZonedDateTime.ofInstant(Instant instant, ZoneId zone)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Instant inst = Instant.now();
ZonedDateTime dt = ZonedDateTime.of(inst, ZoneId.systemDefault());
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
From API doc I expected a ZonedDateTime object
ACTUAL -
Both IDE's indicate an error
Suse Tumbleweed latest with JDK 23
A DESCRIPTION OF THE PROBLEM :
Creating a ZonedDateTime from an Instant gives an error in both Netbeans and Eclipse.
API doc: static ZonedDateTime.ofInstant(Instant instant, ZoneId zone)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Instant inst = Instant.now();
ZonedDateTime dt = ZonedDateTime.of(inst, ZoneId.systemDefault());
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
From API doc I expected a ZonedDateTime object
ACTUAL -
Both IDE's indicate an error