Skip to content

Commit dfc259e

Browse files
[GR-69817] Merge in jdk-25.0.1+8 (25.0)
PullRequest: labsjdk-ce/222
2 parents 6fbd1d0 + d6316a5 commit dfc259e

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

src/java.base/share/classes/java/time/LocalDate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ public final class LocalDate
182182
/**
183183
* @serial The month-of-year.
184184
*/
185-
private final byte month;
185+
private final short month;
186186
/**
187187
* @serial The day-of-month.
188188
*/
189-
private final byte day;
189+
private final short day;
190190

191191
//-----------------------------------------------------------------------
192192
/**
@@ -490,8 +490,8 @@ private static LocalDate resolvePreviousValid(int year, int month, int day) {
490490
*/
491491
private LocalDate(int year, int month, int dayOfMonth) {
492492
this.year = year;
493-
this.month = (byte) month;
494-
this.day = (byte) dayOfMonth;
493+
this.month = (short) month;
494+
this.day = (short) dayOfMonth;
495495
}
496496

497497
//-----------------------------------------------------------------------

src/java.base/share/classes/java/time/MonthDay.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ public final class MonthDay
146146
/**
147147
* @serial The month-of-year, not null.
148148
*/
149-
private final byte month;
149+
private final int month;
150150
/**
151151
* @serial The day-of-month.
152152
*/
153-
private final byte day;
153+
private final int day;
154154

155155
//-----------------------------------------------------------------------
156156
/**
@@ -319,8 +319,8 @@ public static MonthDay parse(CharSequence text, DateTimeFormatter formatter) {
319319
* @param dayOfMonth the day-of-month to represent, validated from 1 to 29-31
320320
*/
321321
private MonthDay(int month, int dayOfMonth) {
322-
this.month = (byte) month;
323-
this.day = (byte) dayOfMonth;
322+
this.month = month;
323+
this.day = dayOfMonth;
324324
}
325325

326326
//-----------------------------------------------------------------------

src/java.base/share/classes/java/time/YearMonth.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public final class YearMonth
153153
/**
154154
* @serial The month-of-year, not null.
155155
*/
156-
private final byte month;
156+
private final int month;
157157

158158
//-----------------------------------------------------------------------
159159
/**
@@ -306,7 +306,7 @@ public static YearMonth parse(CharSequence text, DateTimeFormatter formatter) {
306306
*/
307307
private YearMonth(int year, int month) {
308308
this.year = year;
309-
this.month = (byte) month;
309+
this.month = month;
310310
}
311311

312312
/**

src/java.base/share/classes/java/time/chrono/HijrahDate.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -137,11 +137,11 @@ public final class HijrahDate
137137
/**
138138
* The month-of-year.
139139
*/
140-
private final transient byte monthOfYear;
140+
private final transient int monthOfYear;
141141
/**
142142
* The day-of-month.
143143
*/
144-
private final transient byte dayOfMonth;
144+
private final transient int dayOfMonth;
145145

146146
//-------------------------------------------------------------------------
147147
/**
@@ -273,8 +273,8 @@ private HijrahDate(HijrahChronology chrono, int prolepticYear, int monthOfYear,
273273

274274
this.chrono = chrono;
275275
this.prolepticYear = prolepticYear;
276-
this.monthOfYear = (byte) monthOfYear;
277-
this.dayOfMonth = (byte) dayOfMonth;
276+
this.monthOfYear = monthOfYear;
277+
this.dayOfMonth = dayOfMonth;
278278
}
279279

280280
/**
@@ -287,8 +287,8 @@ private HijrahDate(HijrahChronology chrono, long epochDay) {
287287

288288
this.chrono = chrono;
289289
this.prolepticYear = dateInfo[0];
290-
this.monthOfYear = (byte) dateInfo[1];
291-
this.dayOfMonth = (byte) dateInfo[2];
290+
this.monthOfYear = dateInfo[1];
291+
this.dayOfMonth = dateInfo[2];
292292
}
293293

294294
//-----------------------------------------------------------------------

src/java.base/share/data/currency/CurrencyData.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ formatVersion=3
3232
# Version of the currency code information in this class.
3333
# It is a serial number that accompanies with each amendment.
3434

35-
dataVersion=179
35+
dataVersion=180
3636

3737
# List of all valid ISO 4217 currency codes.
3838
# To ensure compatibility, do not remove codes.
@@ -147,7 +147,7 @@ IO=USD
147147
# BRUNEI DARUSSALAM
148148
BN=BND
149149
# BULGARIA
150-
BG=BGN
150+
BG=BGN;2025-12-31-22-00-00;EUR
151151
# BURKINA FASO
152152
BF=XOF
153153
# BURUNDI
@@ -193,7 +193,7 @@ HR=EUR
193193
# CUBA
194194
CU=CUP
195195
# Curaçao
196-
CW=ANG;2025-04-01-04-00-00;XCG
196+
CW=XCG
197197
# CYPRUS
198198
CY=EUR
199199
# CZECHIA
@@ -510,7 +510,7 @@ SR=SRD
510510
# SVALBARD AND JAN MAYEN
511511
SJ=NOK
512512
# Sint Maarten (Dutch part)
513-
SX=ANG;2025-04-01-04-00-00;XCG
513+
SX=XCG
514514
# ESWATINI
515515
SZ=SZL
516516
# SWEDEN

test/jdk/java/util/Currency/ISO4217-list-one.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#
22
#
3-
# Amendments up until ISO 4217 AMENDMENT NUMBER 179
4-
# (As of 02 May 2025)
3+
# Amendments up until ISO 4217 AMENDMENT NUMBER 180
4+
# (As of 22 September 2025)
55
#
66

77
# Version
88
FILEVERSION=3
9-
DATAVERSION=179
9+
DATAVERSION=180
1010

1111
# ISO 4217 currency data
1212
AF AFN 971 2
@@ -44,7 +44,7 @@ BV NOK 578 2
4444
BR BRL 986 2
4545
IO USD 840 2
4646
BN BND 96 2
47-
BG BGN 975 2
47+
BG BGN 975 2 2025-12-31-22-00-00 EUR 978 2
4848
BF XOF 952 0
4949
BI BIF 108 0
5050
KH KHR 116 2
@@ -69,7 +69,7 @@ CR CRC 188 2
6969
CI XOF 952 0
7070
HR EUR 978 2
7171
CU CUP 192 2
72-
CW ANG 532 2 2025-04-01-04-00-00 XCG 532 2
72+
CW XCG 532 2
7373
CY EUR 978 2
7474
CZ CZK 203 2
7575
DK DKK 208 2
@@ -233,7 +233,7 @@ LK LKR 144 2
233233
SD SDG 938 2
234234
SR SRD 968 2
235235
SJ NOK 578 2
236-
SX ANG 532 2 2025-04-01-04-00-00 XCG 532 2
236+
SX XCG 532 2
237237
SZ SZL 748 2
238238
SE SEK 752 2
239239
CH CHF 756 2

test/jdk/java/util/Currency/ValidateISO4217.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @bug 4691089 4819436 4942982 5104960 6544471 6627549 7066203 7195759
2727
* 8039317 8074350 8074351 8145952 8187946 8193552 8202026 8204269
2828
* 8208746 8209775 8264792 8274658 8283277 8296239 8321480 8334653
29-
* 8354343 8354344 8356096
29+
* 8354343 8354344 8356096 8368308
3030
* @summary Validate ISO 4217 data for Currency class.
3131
* @modules java.base/java.util:open
3232
* jdk.localedata
@@ -116,7 +116,7 @@ public class ValidateISO4217 {
116116
private static final Set<String> currenciesNotYetDefined = new HashSet<>();
117117
// Codes that are obsolete, do not have related country, extra currency
118118
private static final String otherCodes =
119-
"ADP-AFA-ATS-AYM-AZM-BEF-BGL-BOV-BYB-BYR-CHE-CHW-CLF-COU-CUC-CYP-"
119+
"ADP-AFA-ATS-AYM-AZM-BEF-BGL-BGN-BOV-BYB-BYR-CHE-CHW-CLF-COU-CUC-CYP-"
120120
+ "DEM-EEK-ESP-FIM-FRF-GHC-GRD-GWP-HRK-IEP-ITL-LTL-LUF-LVL-MGF-MRO-MTL-MXV-MZM-NLG-"
121121
+ "PTE-ROL-RUR-SDD-SIT-SLL-SKK-SRG-STD-TMM-TPE-TRL-VEF-UYI-USN-USS-VEB-VED-"
122122
+ "XAD-XAG-XAU-XBA-XBB-XBC-XBD-XDR-XFO-XFU-XPD-XPT-XSU-XTS-XUA-XXX-"

0 commit comments

Comments
 (0)