Skip to content

Commit 3d9725f

Browse files
moscherjernst
andauthored
Upgrade ASM to 9.9 (elastic#136963) (elastic#137037)
This allows reading classfile from JDK 26. (cherry picked from commit af6d157) # Conflicts: # libs/entitlement/build.gradle # libs/entitlement/tools/jdk-api-extractor/build.gradle # libs/entitlement/tools/public-callers-finder/build.gradle Co-authored-by: Ryan Ernst <[email protected]>
1 parent 0e97999 commit 3d9725f

File tree

14 files changed

+58
-28
lines changed

14 files changed

+58
-28
lines changed

distribution/tools/plugin-cli/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ dependencies {
2626
implementation project(":libs:plugin-scanner")
2727
implementation project(":libs:entitlement")
2828
// TODO: asm is picked up from the plugin scanner and entitlements, we should consolidate so it is not defined twice
29-
implementation 'org.ow2.asm:asm:9.8'
30-
implementation 'org.ow2.asm:asm-tree:9.8'
29+
implementation 'org.ow2.asm:asm:9.9'
30+
implementation 'org.ow2.asm:asm-tree:9.9'
3131

3232
api "org.bouncycastle:bcpg-fips:1.0.7.1"
3333
api "org.bouncycastle:bc-fips:1.0.2.6"

docs/changelog/136963.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 136963
2+
summary: Upgrade ASM to 9.9
3+
area: Infra/Core
4+
type: upgrade
5+
issues: []

gradle/verification-metadata.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4656,6 +4656,11 @@
46564656
<sha256 value="876eab6a83daecad5ca67eb9fcabb063c97b5aeb8cf1fca7a989ecde17522051" origin="Generated by Gradle"/>
46574657
</artifact>
46584658
</component>
4659+
<component group="org.ow2.asm" name="asm" version="9.9">
4660+
<artifact name="asm-9.9.jar">
4661+
<sha256 value="03d99a74ad1ee5c71334ef67437f4ef4fe3488caa7c96d8645abc73c8e2017d4" origin="Generated by Gradle"/>
4662+
</artifact>
4663+
</component>
46594664
<component group="org.ow2.asm" name="asm-analysis" version="7.2">
46604665
<artifact name="asm-analysis-7.2.jar">
46614666
<sha256 value="be922aae60ff1ff1768e8e6544a38a7f92bd0a6d6b0b9791f94955d1bd453de2" origin="Generated by Gradle"/>
@@ -4681,6 +4686,11 @@
46814686
<sha256 value="e640732fbcd3c6271925a504f125e38384688f4dfbbf92c8622dfcee0d09edb9" origin="Generated by Gradle"/>
46824687
</artifact>
46834688
</component>
4689+
<component group="org.ow2.asm" name="asm-analysis" version="9.9">
4690+
<artifact name="asm-analysis-9.9.jar">
4691+
<sha256 value="6a15d28e8bd29ba4fd5bca4baf9b50e8fba2d7b51fbf78cfa0c875a7214c678b" origin="Generated by Gradle"/>
4692+
</artifact>
4693+
</component>
46844694
<component group="org.ow2.asm" name="asm-commons" version="7.2">
46854695
<artifact name="asm-commons-7.2.jar">
46864696
<sha256 value="0e86b8b179c5fb223d1a880a0ff4960b6978223984b94e62e71135f2d8ea3558" origin="Generated by Gradle"/>
@@ -4711,6 +4721,11 @@
47114721
<sha256 value="3301a1c1cb4c59fcc5292648dac1d7c5aed4c0f067dfbe88873b8cdfe77404f4" origin="Generated by Gradle"/>
47124722
</artifact>
47134723
</component>
4724+
<component group="org.ow2.asm" name="asm-commons" version="9.9">
4725+
<artifact name="asm-commons-9.9.jar">
4726+
<sha256 value="db2f6f26150bbe7c126606b4a1151836bcc22a1e05a423b3585698bece995ff8" origin="Generated by Gradle"/>
4727+
</artifact>
4728+
</component>
47144729
<component group="org.ow2.asm" name="asm-tree" version="7.2">
47154730
<artifact name="asm-tree-7.2.jar">
47164731
<sha256 value="c063f5a67fa03cdc9bd79fd1c2ea6816cc4a19473ecdfbd9e9153b408c6f2656" origin="Generated by Gradle"/>
@@ -4756,6 +4771,11 @@
47564771
<sha256 value="14b7880cb7c85eed101e2710432fc3ffb83275532a6a894dc4c4095d49ad59f1" origin="Generated by Gradle"/>
47574772
</artifact>
47584773
</component>
4774+
<component group="org.ow2.asm" name="asm-tree" version="9.9">
4775+
<artifact name="asm-tree-9.9.jar">
4776+
<sha256 value="42178f3775c9c63f9e5e1446747d29b4eca4d91bd6e75e5c43cfa372a47d38c6" origin="Generated by Gradle"/>
4777+
</artifact>
4778+
</component>
47594779
<component group="org.ow2.asm" name="asm-util" version="7.2">
47604780
<artifact name="asm-util-7.2.jar">
47614781
<sha256 value="6e24913b021ffacfe8e7e053d6e0ccc731941148cfa078d4f1ed3d96904530f8" origin="Generated by Gradle"/>
@@ -4771,6 +4791,11 @@
47714791
<sha256 value="8ba0460ecb28fd0e2980e5f3ef3433a513a457bc077f81a53bdc75b587a08d15" origin="Generated by Gradle"/>
47724792
</artifact>
47734793
</component>
4794+
<component group="org.ow2.asm" name="asm-util" version="9.9">
4795+
<artifact name="asm-util-9.9.jar">
4796+
<sha256 value="3842e13cfe324ee9ab7cdc4914be9943541ead397c17e26daf0b8a755bede717" origin="Generated by Gradle"/>
4797+
</artifact>
4798+
</component>
47744799
<component group="org.reactivestreams" name="reactive-streams" version="1.0.4">
47754800
<artifact name="reactive-streams-1.0.4.jar">
47764801
<sha256 value="f75ca597789b3dac58f61857b9ac2e1034a68fa672db35055a8fb4509e325f28" 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.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'
16+
implementation 'org.ow2.asm:asm:9.9'
17+
implementation 'org.ow2.asm:asm-util:9.9'
18+
implementation 'org.ow2.asm:asm-tree:9.9'
19+
implementation 'org.ow2.asm:asm-analysis:9.9'
2020
testImplementation project(":test:framework")
2121
testImplementation project(":libs:entitlement:bridge")
2222
}

libs/entitlement/tools/jdk-api-extractor/build.gradle

Whitespace-only changes.

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.8'
50-
implementation 'org.ow2.asm:asm-util:9.8'
49+
implementation 'org.ow2.asm:asm:9.9'
50+
implementation 'org.ow2.asm:asm-util:9.9'
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.8'
50-
implementation 'org.ow2.asm:asm-util:9.8'
49+
implementation 'org.ow2.asm:asm:9.9'
50+
implementation 'org.ow2.asm:asm-util:9.9'
5151
implementation(project(':libs:entitlement:tools:common'))
5252
}
5353

libs/plugin-scanner/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ dependencies {
2020
api project(':libs:plugin-api')
2121
api project(":libs:x-content")
2222

23-
api 'org.ow2.asm:asm:9.8'
24-
api 'org.ow2.asm:asm-tree:9.8'
23+
api 'org.ow2.asm:asm:9.9'
24+
api 'org.ow2.asm:asm-tree:9.9'
2525

2626
testImplementation "junit:junit:${versions.junit}"
2727
testImplementation(project(":test:framework")) {

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: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'
22+
runtimeOnly 'org.ow2.asm:asm:9.9'
23+
runtimeOnly 'org.ow2.asm:asm-commons:9.9'
24+
runtimeOnly 'org.ow2.asm:asm-tree:9.9'
25+
runtimeOnly 'org.ow2.asm:asm-analysis:9.9'
2626
}
2727
restResources {
2828
restApi {

modules/lang-painless/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ configurations {
3737

3838
dependencies {
3939
api "org.antlr:antlr4-runtime:${versions.antlr4}"
40-
api 'org.ow2.asm:asm-util:9.8'
41-
api 'org.ow2.asm:asm-tree:9.8'
42-
api 'org.ow2.asm:asm-commons:9.8'
43-
api 'org.ow2.asm:asm-analysis:9.8'
44-
api 'org.ow2.asm:asm:9.8'
40+
api 'org.ow2.asm:asm-util:9.9'
41+
api 'org.ow2.asm:asm-tree:9.9'
42+
api 'org.ow2.asm:asm-commons:9.9'
43+
api 'org.ow2.asm:asm-analysis:9.9'
44+
api 'org.ow2.asm:asm:9.9'
4545
spi project('spi')
4646
clusterModules project(':modules:mapper-extras')
4747
}

0 commit comments

Comments
 (0)