134 Commits

Author SHA1 Message Date
Jaikiran Pai
89129e3f67 8212895: ChronoField.INSTANT_SECONDS's range doesn't match the range of Instant
Reviewed-by: rriggs, naoto
2024-04-17 10:59:12 +00:00
Naoto Sato
809995b526 8174269: Remove COMPAT locale data provider from JDK
Reviewed-by: ihse, joehw
2024-03-05 19:32:29 +00:00
Naoto Sato
64f7972a3d 8326158: Javadoc for java.time.DayOfWeek#minus(long)
Reviewed-by: iris, lancea
2024-02-21 16:53:57 +00:00
Naoto Sato
96eb0390d6 8324665: Loose matching of space separators in the lenient date/time parsing mode
Reviewed-by: joehw, jlu
2024-02-06 17:43:12 +00:00
Naoto Sato
87ef73329f 8321958: @param/@return descriptions of ZoneRules#isDaylightSavings() are incorrect
Reviewed-by: jlu, joehw, jpai
2023-12-15 17:33:50 +00:00
Naoto Sato
fe0ccdf5f8 8319640: ClassicFormat::parseObject (from DateTimeFormatter) does not conform to the javadoc and may leak DateTimeException
Reviewed-by: rriggs, iris, jlu, joehw
2023-11-13 23:42:40 +00:00
Eamonn McManus
965ae72964 8319753: Duration javadoc has "period" instead of "duration" in several places
Reviewed-by: rriggs
2023-11-13 20:53:30 +00:00
Claes Redestad
7d25f1c6cb 8319423: Improve Year.isLeap by checking divisibility by 16
Reviewed-by: naoto, rriggs
2023-11-08 15:18:53 +00:00
Eamonn McManus
9c819fd3b7 8318051: Duration.between uses exceptions for control flow
Reviewed-by: rriggs
2023-10-24 18:32:33 +00:00
Glavo
b32d6411c4 8311943: Cleanup usages of toLowerCase() and toUpperCase() in java.base
Reviewed-by: naoto
2023-08-16 17:37:21 +00:00
Roger Riggs
8650026ff1 8310033: Clarify return value of Java Time compareTo methods
Reviewed-by: bpb, scolebourne, prappo, naoto
2023-07-27 14:01:25 +00:00
Roger Riggs
11fd34e196 8310241: OffsetDateTime compareTo redundant computation
Reviewed-by: naoto
2023-06-29 21:05:37 +00:00
Naoto Sato
a995aa6cd1 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond
Reviewed-by: iris, rriggs, jpai
2023-06-29 16:15:02 +00:00
Naoto Sato
ec45bd64d5 8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash
Reviewed-by: rriggs, darcy, iris, lancea
2023-06-27 16:13:20 +00:00
Pavel Rappo
38367d3c3a 8308735: Typos in parameter names
Reviewed-by: naoto, iris, bpb
2023-05-25 10:22:41 +00:00
Justin Lu
4795c395e9 8281103: Give example for Locale that is English and follows the ISO standards
Reviewed-by: rriggs, lancea, naoto
2023-05-10 23:57:48 +00:00
Roger Riggs
356667f155 8307466: java.time.Instant calculation bug in until and between methods
Co-authored-by: Raffaello Giulietti <rgiulietti@openjdk.org>
Reviewed-by: scolebourne, naoto
2023-05-09 20:51:33 +00:00
Eamonn McManus
74667e3d56 8303919: Instant.ofEpochMilli says it can throw an exception that it can't
Reviewed-by: rriggs
2023-05-02 23:26:01 +00:00
Sergey Tsypanov
561ec9c5a0 8300818: Reduce complexity of padding with DateTimeFormatter
Reviewed-by: redestad, rriggs
2023-05-01 18:24:07 +00:00
Madjosz
f83e7302c1 8302983: ZoneRulesProvider.registerProvider() twice will remove provider
Reviewed-by: naoto
2023-04-28 16:23:13 +00:00
Jonathan Gibbons
c6bd489cc8 8305206: Add @spec tags in java.base/java.* (part 1)
Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
2023-04-04 00:09:38 +00:00
Sergey Tsypanov
438c969b7b 8304976: Optimize DateTimeFormatterBuilder.ZoneTextPrinterParser.getTree()
Reviewed-by: naoto
2023-03-29 18:32:14 +00:00
Naoto Sato
cfb0a25a4e 8303440: The "ZonedDateTime.parse" may not accept the "UTC+XX" zone id
Reviewed-by: iris, jpai, rriggs, lancea
2023-03-06 17:22:52 +00:00
Roger Riggs
4c169d2d7c 8303253: Remove unnecessary calls to super() in java.time value based classes
Reviewed-by: naoto, mchung, lancea
2023-02-27 18:10:40 +00:00
Tagir F. Valeev
3f3a1f534b 8302815: Use new Math.clamp method in core libraries
Reviewed-by: alanb
2023-02-22 09:51:14 +00:00
Naoto Sato
c7716a0101 8299571: ZoneRulesProvider.registerProvider() can leave inconsistent state on failure
Reviewed-by: iris, rriggs, joehw
2023-01-11 17:01:48 +00:00
Naoto Sato
8b140e2d74 8297152: Add a @sealedGraph tag to ZoneId
Reviewed-by: iris, joehw
2022-11-17 16:59:08 +00:00
Andrey Turbanov
9309786dbf 8294472: Remove redundant rawtypes suppression in AbstractChronology
Reviewed-by: lancea, naoto
2022-09-28 18:44:01 +00:00
Naoto Sato
32c7b6283d 8293146: Strict DateTimeFormatter fails to report an invalid week 53
Reviewed-by: rriggs
2022-09-07 18:33:37 +00:00
Naoto Sato
6a1b0b5649 8293154: TemporalQueries java doc error
Reviewed-by: rriggs, lancea
2022-09-01 15:46:45 +00:00
Andrey Turbanov
52cc6cd063 8288723: Avoid redundant ConcurrentHashMap.get call in java.time
Reviewed-by: attila, rriggs
2022-07-21 10:22:58 +00:00
Ryan Ernst
53fc495e3a 8290316: Ensure that all directory streams are closed in java.base
Reviewed-by: chegar
2022-07-21 06:19:00 +00:00
XenoAmess
e01cd7c3ed 8284780: Need methods to create pre-sized HashSet and LinkedHashSet
Reviewed-by: naoto, bpb, dfuchs, ascarpino
2022-06-09 01:50:54 +00:00
Naoto Sato
ef7a9f8170 8279185: Support for IsoFields in JapaneseDate/MinguoDate/ThaiBuddhistDate
Reviewed-by: joehw, rriggs
2022-05-23 16:20:52 +00:00
Roger Riggs
17c52789b7 8286378: Address possibly lossy conversions in java.base
Reviewed-by: naoto, xuelei, bpb, alanb
2022-05-12 16:50:36 +00:00
Lennart Fricke
3462190965 8286163: micro-optimize Instant.plusSeconds
Reviewed-by: scolebourne, redestad, naoto
2022-05-10 09:00:09 +00:00
Andrey Turbanov
dce860aa8a 8285947: Avoid redundant HashMap.containsKey calls in ZoneName
Reviewed-by: scolebourne, naoto, rriggs
2022-05-05 13:19:14 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
Glavo
5691a3b6af 8284702: Add @since for java.time.LocalDate.EPOCH
Reviewed-by: rriggs, bpb, iris, darcy, naoto
2022-04-13 02:17:45 +00:00
Claes Redestad
1a5f5da050 8283996: Reduce cost of year and month calculations
Reviewed-by: bpb, scolebourne, naoto, rriggs
2022-03-31 08:45:06 +00:00
Claes Redestad
072f2c461e 8283782: Redundant verification of year in LocalDate::ofEpochDay
Reviewed-by: rriggs, naoto
2022-03-29 19:48:43 +00:00
Claes Redestad
0e788e0ecb 8283781: Avoid allocating unused lastRulesCaches
Reviewed-by: rriggs, naoto
2022-03-29 09:33:07 +00:00
Claes Redestad
7bac0a878d 8283681: Improve ZonedDateTime offset handling
Reviewed-by: scolebourne, naoto, rriggs
2022-03-25 22:37:55 +00:00
Naoto Sato
733c7907b0 8282081: java.time.DateTimeFormatter: wrong definition of symbol F
Reviewed-by: joehw, scolebourne, lancea, rriggs
2022-03-04 16:57:54 +00:00
Naoto Sato
0ae3d1d59c 8282131: java.time.ZoneId should be a sealed abstract class
Reviewed-by: iris, rriggs, bpb, lancea, mchung, scolebourne
2022-02-28 13:22:15 +00:00
Jaikiran Pai
e0b49629e9 8282190: Typo in javadoc of java.time.format.DateTimeFormatter#getDecimalStyle
Reviewed-by: dfuchs, rriggs, lancea, iris
2022-02-22 01:39:28 +00:00
Naoto Sato
9b74c3f2e7 8176706: Additional Date-Time Formats
Reviewed-by: joehw, rriggs
2022-02-16 16:54:53 +00:00
Andrey Turbanov
53804720a0 8280470: Confusing instanceof check in HijrahChronology.range
Reviewed-by: rriggs, naoto, dfuchs, iris
2022-01-25 08:08:17 +00:00
Naoto Sato
a363b7b921 8177819: DateTimeFormatterBuilder zone parsing should recognise DST
8277049: ZonedDateTime parse in Fall DST transition fails to retain the correct zonename.

Reviewed-by: joehw, scolebourne
2021-12-01 17:14:53 +00:00
Andrey Turbanov
1e941dedad 8275197: Remove unused fields in ThaiBuddhistChronology
Reviewed-by: naoto, rriggs, iris
2021-11-11 22:26:45 +00:00