Commit graph

148 commits

Author SHA1 Message Date
Shaojin Wen
3f8a875497 8348880: Replace ConcurrentMap with AtomicReferenceArray for ZoneOffset.QUARTER_CACHE
Reviewed-by: naoto, liach
2025-01-30 15:13:13 +00:00
Hannes Wallnöfer
ceae2b977d 8347121: Add missing @serial tags to module java.base
Reviewed-by: alanb
2025-01-09 11:49:18 +00:00
Naoto Sato
9702accdd9 8175709: DateTimeFormatterBuilder.appendZoneId() has misleading JavaDoc
Reviewed-by: rriggs
2025-01-07 17:40:01 +00:00
Naoto Sato
9a60f4457b 8345668: ZoneOffset.ofTotalSeconds performance regression
Reviewed-by: rriggs, aturbanov
2025-01-06 17:04:07 +00:00
Roger Riggs
5ac330b1ac 8344039: Remove security manager dependency in java.time
Reviewed-by: naoto, mullan, lancea
2024-11-13 20:03:26 +00:00
Johny Jose
ebc17c7c8d 8339637: (tz) Update Timezone Data to 2024b
Reviewed-by: naoto, coffeys, jlu
2024-10-16 07:36:07 +00:00
Joe Darcy
89c172ac47 8340082: Use inline return tag in java.base
Reviewed-by: iris, prappo, lancea, djelinski, naoto, liach
2024-09-13 16:49:28 +00:00
Shaojin Wen
449ca2c3c1 8337832: Optimize datetime toString
Reviewed-by: scolebourne, liach, naoto
2024-08-27 22:10:05 +00:00
Shaojin Wen
5ff7c57f9f 8337168: Optimize LocalDateTime.toString
Reviewed-by: liach, naoto
2024-07-26 12:10:21 +00:00
Shaojin Wen
7f11935461 8337167: StringSize deduplication
Reviewed-by: liach, rriggs
2024-07-26 07:08:33 +00:00
Shaojin Wen
0898ab7f74 8336741: Optimize LocalTime.toString with StringBuilder.repeat
Reviewed-by: liach, rriggs, naoto
2024-07-24 22:39:49 +00:00
Shaojin Wen
491b9f5efc 8336706: Optimize LocalDate.toString with StringBuilder.repeat
Reviewed-by: liach, rriggs
2024-07-20 06:54:19 +00:00
Shaojin Wen
e3acf4c627 8336792: DateTimeFormatterBuilder append zeros based on StringBuilder.repeat
Reviewed-by: liach, rriggs, naoto
2024-07-19 22:06:23 +00:00
Naoto Sato
259915168d 8331202: Support for Duration until another Instant
Reviewed-by: joehw, scolebourne, rriggs
2024-05-16 16:12:53 +00:00
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