Skip to content

Commit c7df675

Browse files
authored
[9.0] Update bundled JDK to 25 (#134910) (#135083)
* Update bundled JDK to 25 (#134910) Co-authored-by: Mark Vieira <[email protected]> (cherry picked from commit 4aa0f16) # Conflicts: # x-pack/plugin/esql/build.gradle # x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/CustomRequestManagerTests.java # x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/request/CustomRequestTests.java * fix asm version
1 parent 1c119b6 commit c7df675

File tree

16 files changed

+57
-29
lines changed

16 files changed

+57
-29
lines changed

build-tools-internal/src/main/resources/fips_java.security

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ jdk.xml.dsig.secureValidationPolicy=\
4949
noRetrievalMethodLoops
5050
jceks.key.serialFilter = java.base/java.lang.Enum;java.base/java.security.KeyRep;\
5151
java.base/java.security.KeyRep$Type;java.base/javax.crypto.spec.SecretKeySpec;!*
52+
53+
# Needed since JDK25 to match the default config in the out-of-the-box java.security
54+
jdk.includeInExceptions=hostInfoExclSocket

build-tools-internal/src/main/resources/fips_java_oracle.security

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ jdk.xml.dsig.secureValidationPolicy=\
5050
noRetrievalMethodLoops
5151
jceks.key.serialFilter = java.base/java.lang.Enum;java.base/java.security.KeyRep;\
5252
java.base/java.security.KeyRep$Type;java.base/javax.crypto.spec.SecretKeySpec;!*
53+
54+
# Needed since JDK25 to match the default config in the out-of-the-box java.security
55+
jdk.includeInExceptions=hostInfoExclSocket

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ elasticsearch = 9.0.8
22
lucene = 10.1.0
33

44
bundled_jdk_vendor = openjdk
5-
bundled_jdk = 24.0.2+12@fdc5d0102fe0414db21410ad5834341f
5+
bundled_jdk = 25+36@bd75d5f9689641da8e1daabeccb5528b
66
# optional dependencies
77
spatial4j = 0.7
88
jts = 1.15.0

client/rest/src/test/java/org/elasticsearch/client/RestClientMultipleHostsIntegTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import static org.elasticsearch.client.RestClientTestUtil.randomErrorNoRetryStatusCode;
5050
import static org.elasticsearch.client.RestClientTestUtil.randomOkStatusCode;
5151
import static org.hamcrest.CoreMatchers.instanceOf;
52+
import static org.hamcrest.Matchers.startsWith;
5253
import static org.junit.Assert.assertEquals;
5354
import static org.junit.Assert.assertThat;
5455
import static org.junit.Assert.assertTrue;
@@ -314,7 +315,7 @@ public void testNodeSelector() throws Exception {
314315
} catch (ConnectException e) {
315316
// Windows isn't consistent here. Sometimes the message is even null!
316317
if (false == System.getProperty("os.name").startsWith("Windows")) {
317-
assertEquals("Connection refused", e.getMessage());
318+
assertThat(e.getMessage(), startsWith("Connection refused"));
318319
}
319320
}
320321
} else {

client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
import static java.util.Collections.singletonList;
4646
import static org.hamcrest.Matchers.instanceOf;
47+
import static org.hamcrest.Matchers.startsWith;
4748
import static org.junit.Assert.assertEquals;
4849
import static org.junit.Assert.assertFalse;
4950
import static org.junit.Assert.assertSame;
@@ -105,7 +106,7 @@ public void onSuccess(Response response) {
105106
public void onFailure(Exception exception) {
106107
try {
107108
assertThat(exception, instanceOf(IllegalArgumentException.class));
108-
assertEquals("Expected scheme name at index 0: ::http:///", exception.getMessage());
109+
assertThat(exception.getMessage(), startsWith(("Expected scheme name")));
109110
} finally {
110111
latch.countDown();
111112
}

gradle/verification-metadata.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,6 +4606,11 @@
46064606
<sha256 value="f885be71b5c90556f5f1ad1c4f9276b29b96057c497d46666fe4ddbec3cb43c6" origin="Generated by Gradle"/>
46074607
</artifact>
46084608
</component>
4609+
<component group="org.ow2.asm" name="asm-util" version="9.8">
4610+
<artifact name="asm-util-9.8.jar">
4611+
<sha256 value="8ba0460ecb28fd0e2980e5f3ef3433a513a457bc077f81a53bdc75b587a08d15" origin="Generated by Gradle"/>
4612+
</artifact>
4613+
</component>
46094614
<component group="org.reactivestreams" name="reactive-streams" version="1.0.4">
46104615
<artifact name="reactive-streams-1.0.4.jar">
46114616
<sha256 value="f75ca597789b3dac58f61857b9ac2e1034a68fa672db35055a8fb4509e325f28" origin="Generated by Gradle"/>
@@ -4651,6 +4656,11 @@
46514656
<sha256 value="18c4a0095d5c1da6b817592e767bb23d29dd2f560ad74df75ff3961dbde25b79" origin="Generated by Gradle"/>
46524657
</artifact>
46534658
</component>
4659+
<component group="org.slf4j" name="slf4j-api" version="1.7.32">
4660+
<artifact name="slf4j-api-1.7.32.jar">
4661+
<sha256 value="3624f8474c1af46d75f98bc097d7864a323c81b3808aa43689a6e1c601c027be" origin="Generated by Gradle"/>
4662+
</artifact>
4663+
</component>
46544664
<component group="org.slf4j" name="slf4j-api" version="2.0.17">
46554665
<artifact name="slf4j-api-2.0.17.jar">
46564666
<sha256 value="7b751d952061954d5abfed7181c1f645d336091b679891591d63329c622eb832" origin="Generated by Gradle"/>

libs/entitlement/asm-provider/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ dependencies {
1313
compileOnly project(':libs:entitlement')
1414
compileOnly project(':libs:core')
1515
compileOnly project(':libs:logging')
16-
implementation 'org.ow2.asm:asm:9.7.1'
17-
implementation 'org.ow2.asm:asm-util:9.7.1'
18-
implementation 'org.ow2.asm:asm-tree:9.7.1'
19-
implementation 'org.ow2.asm:asm-analysis:9.7.1'
16+
implementation 'org.ow2.asm:asm:9.8'
17+
implementation 'org.ow2.asm:asm-util:9.8'
18+
implementation 'org.ow2.asm:asm-tree:9.8'
19+
implementation 'org.ow2.asm:asm-analysis:9.8'
2020
testImplementation project(":test:framework")
2121
testImplementation project(":libs:entitlement:bridge")
2222
}

libs/entitlement/tools/public-callers-finder/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ repositories {
4646

4747
dependencies {
4848
compileOnly(project(':libs:core'))
49-
implementation 'org.ow2.asm:asm:9.7.1'
50-
implementation 'org.ow2.asm:asm-util:9.7.1'
49+
implementation 'org.ow2.asm:asm:9.8'
50+
implementation 'org.ow2.asm:asm-util:9.8'
5151
implementation(project(':libs:entitlement:tools:common'))
5252
}
5353

libs/entitlement/tools/securitymanager-scanner/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ repositories {
4646

4747
dependencies {
4848
compileOnly(project(':libs:core'))
49-
implementation 'org.ow2.asm:asm:9.7.1'
50-
implementation 'org.ow2.asm:asm-util:9.7.1'
49+
implementation 'org.ow2.asm:asm:9.8'
50+
implementation 'org.ow2.asm:asm-util:9.8'
5151
implementation(project(':libs:entitlement:tools:common'))
5252
}
5353

modules/lang-expression/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ dependencies {
1919
api "org.apache.lucene:lucene-expressions:${versions.lucene}"
2020
runtimeOnly "org.apache.lucene:lucene-codecs:${versions.lucene}"
2121
runtimeOnly "org.antlr:antlr4-runtime:${versions.antlr4}"
22-
runtimeOnly 'org.ow2.asm:asm:7.2'
23-
runtimeOnly 'org.ow2.asm:asm-commons:7.2'
24-
runtimeOnly 'org.ow2.asm:asm-tree:7.2'
25-
runtimeOnly 'org.ow2.asm:asm-analysis:7.2'
22+
runtimeOnly 'org.ow2.asm:asm:9.8'
23+
runtimeOnly 'org.ow2.asm:asm-commons:9.8'
24+
runtimeOnly 'org.ow2.asm:asm-tree:9.8'
25+
runtimeOnly 'org.ow2.asm:asm-analysis:9.8'
2626
}
2727
restResources {
2828
restApi {

0 commit comments

Comments
 (0)