Skip to content

Commit d3806a3

Browse files
committed
Merge master jdk-17.0.16+3 into openj9-staging
Signed-off-by: J9 Build <[email protected]>
2 parents 6938d1c + a5c3cda commit d3806a3

File tree

382 files changed

+5276
-30786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+5276
-30786
lines changed

make/data/cacerts/camerfirmachamberscommerceca

Lines changed: 0 additions & 35 deletions
This file was deleted.

make/data/cacerts/camerfirmachambersignca

Lines changed: 0 additions & 48 deletions
This file was deleted.

make/hotspot/lib/CompileGtest.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ $(eval $(call SetupJdkLibrary, BUILD_GTEST_LIBGTEST, \
4949
$(GTEST_FRAMEWORK_SRC)/googletest/src \
5050
$(GTEST_FRAMEWORK_SRC)/googlemock/src, \
5151
INCLUDE_FILES := gtest-all.cc gmock-all.cc, \
52-
DISABLED_WARNINGS_gcc := undef unused-result format-nonliteral maybe-uninitialized, \
52+
DISABLED_WARNINGS_gcc := undef unused-result format-nonliteral \
53+
maybe-uninitialized zero-as-null-pointer-constant, \
5354
DISABLED_WARNINGS_clang := undef unused-result format-nonliteral, \
5455
CFLAGS := $(JVM_CFLAGS) \
5556
-I$(GTEST_FRAMEWORK_SRC)/googletest \

src/java.base/share/classes/java/text/DateFormatSymbols.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ public void setZoneStrings(String[][] newZoneStrings) {
605605
for (int i = 0; i < newZoneStrings.length; ++i) {
606606
int len = newZoneStrings[i].length;
607607
if (len < 5) {
608-
throw new IllegalArgumentException();
608+
throw new IllegalArgumentException(String.format(
609+
"Row %s of the input array does not have a length of at least 5", i));
609610
}
610611
aCopy[i] = Arrays.copyOf(newZoneStrings[i], len);
611612
}

src/java.base/share/classes/sun/security/validator/CamerfirmaTLSPolicy.java

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,14 @@ final class CamerfirmaTLSPolicy {
4343

4444
private static final Debug debug = Debug.getInstance("certpath");
4545

46-
// SHA-256 certificate fingerprints of distrusted roots
47-
private static final Set<String> FINGERPRINTS = Set.of(
48-
// cacerts alias: camerfirmachamberscommerceca
49-
// DN: CN=Chambers of Commerce Root,
50-
// OU=http://www.chambersign.org,
51-
// O=AC Camerfirma SA CIF A82743287, C=EU
52-
"0C258A12A5674AEF25F28BA7DCFAECEEA348E541E6F5CC4EE63B71B361606AC3",
53-
// cacerts alias: camerfirmachambersca
54-
// DN: CN=Chambers of Commerce Root - 2008,
55-
// O=AC Camerfirma S.A., SERIALNUMBER=A82743287,
56-
// L=Madrid (see current address at www.camerfirma.com/address),
57-
// C=EU
58-
"063E4AFAC491DFD332F3089B8542E94617D893D7FE944E10A7937EE29D9693C0",
59-
// cacerts alias: camerfirmachambersignca
60-
// DN: CN=Global Chambersign Root - 2008,
61-
// O=AC Camerfirma S.A., SERIALNUMBER=A82743287,
62-
// L=Madrid (see current address at www.camerfirma.com/address),
63-
// C=EU
64-
"136335439334A7698016A0D324DE72284E079D7B5220BB8FBD747816EEBEBACA"
65-
);
46+
// SHA-256 certificate fingerprint of distrusted root for TLS
47+
// cacerts alias: camerfirmachambersca
48+
// DN: CN=Chambers of Commerce Root - 2008,
49+
// O=AC Camerfirma S.A., SERIALNUMBER=A82743287,
50+
// L=Madrid (see current address at www.camerfirma.com/address),
51+
// C=EU
52+
private static final String FINGERPRINT =
53+
"063E4AFAC491DFD332F3089B8542E94617D893D7FE944E10A7937EE29D9693C0";
6654

6755
// Any TLS Server certificate that is anchored by one of the Camerfirma
6856
// roots above and is issued after this date will be distrusted.
@@ -85,7 +73,7 @@ static void checkDistrust(X509Certificate[] chain)
8573
throw new ValidatorException("Cannot generate fingerprint for "
8674
+ "trust anchor of TLS server certificate");
8775
}
88-
if (FINGERPRINTS.contains(fp)) {
76+
if (FINGERPRINT.equalsIgnoreCase(fp)) {
8977
Date notBefore = chain[0].getNotBefore();
9078
LocalDate ldNotBefore = LocalDate.ofInstant(notBefore.toInstant(),
9179
ZoneOffset.UTC);

src/java.desktop/share/classes/javax/swing/SwingUtilities.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,10 @@ static int findDisplayedMnemonicIndex(String text, int mnemonic) {
20732073
return -1;
20742074
}
20752075

2076+
if (mnemonic >= 'a' && mnemonic <= 'z') {
2077+
return -1;
2078+
}
2079+
20762080
char uc = Character.toUpperCase((char)mnemonic);
20772081
char lc = Character.toLowerCase((char)mnemonic);
20782082

test/hotspot/gtest/gtestMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static void run_in_new_thread(const args_t* args) {
334334
extern "C" void* thread_wrapper(void* p) {
335335
const args_t* const p_args = (const args_t*) p;
336336
runUnitTestsInner(p_args->argc, p_args->argv);
337-
return 0;
337+
return nullptr;
338338
}
339339

340340
static void run_in_new_thread(const args_t* args) {

test/hotspot/jtreg/applications/jcstress/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
1+
Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
22
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33

44
This code is free software; you can redistribute it and/or modify it
@@ -37,5 +37,5 @@ The */Test.java files should never be modified directly, because they are
3737
generated by TestGenerator and therefore all required changes must be made in
3838
that class.
3939

40-
[1] https://wiki.openjdk.java.net/display/CodeTools/jcstress
40+
[1] https://wiki.openjdk.org/display/CodeTools/jcstress
4141

test/hotspot/jtreg/applications/jcstress/TestGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* added to classpath. One can replace @notest by @test in jtreg test
5757
* description above to run this class with jtreg.
5858
*
59-
* @see <a href=https://wiki.openjdk.java.net/display/CodeTools/jcstress>jcstress</a>
59+
* @see <a href=https://wiki.openjdk.org/display/CodeTools/jcstress>jcstress</a>
6060
*/
6161
public class TestGenerator {
6262
private static final String COPYRIGHT;

test/hotspot/jtreg/compiler/c2/Test6880034.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
// an incorrect result on 32-bit server VMs on SPARC due to a regression
5353
// introduced by the change: "6420645: Create a vm that uses compressed oops
5454
// for up to 32gb heapsizes"
55-
// (http://hg.openjdk.java.net/jdk7/jdk7/hotspot/rev/ba764ed4b6f2). Further
55+
// (https://git.openjdk.org/jdk/commit/4a831d4). Further
5656
// investigation showed that change 6420645 is not really the root cause of
5757
// this error but only reveals a problem with the float register encodings in
5858
// sparc.ad which was hidden until now.

0 commit comments

Comments
 (0)