Skip to content

Commit e29f10e

Browse files
moscherjernst
andauthored
[8.19] Upgrade ASM to 9.9 (#136963) (#137038)
* Upgrade ASM to 9.9 (#136963) 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 * Delete libs/entitlement/tools/public-callers-finder/build.gradle * Delete libs/entitlement/tools/jdk-api-extractor/build.gradle --------- Co-authored-by: Ryan Ernst <[email protected]>
1 parent 89eceba commit e29f10e

File tree

12 files changed

+56
-26
lines changed

12 files changed

+56
-26
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
@@ -4586,6 +4586,11 @@
45864586
<sha256 value="876eab6a83daecad5ca67eb9fcabb063c97b5aeb8cf1fca7a989ecde17522051" origin="Generated by Gradle"/>
45874587
</artifact>
45884588
</component>
4589+
<component group="org.ow2.asm" name="asm" version="9.9">
4590+
<artifact name="asm-9.9.jar">
4591+
<sha256 value="03d99a74ad1ee5c71334ef67437f4ef4fe3488caa7c96d8645abc73c8e2017d4" origin="Generated by Gradle"/>
4592+
</artifact>
4593+
</component>
45894594
<component group="org.ow2.asm" name="asm-analysis" version="7.2">
45904595
<artifact name="asm-analysis-7.2.jar">
45914596
<sha256 value="be922aae60ff1ff1768e8e6544a38a7f92bd0a6d6b0b9791f94955d1bd453de2" origin="Generated by Gradle"/>
@@ -4611,6 +4616,11 @@
46114616
<sha256 value="e640732fbcd3c6271925a504f125e38384688f4dfbbf92c8622dfcee0d09edb9" origin="Generated by Gradle"/>
46124617
</artifact>
46134618
</component>
4619+
<component group="org.ow2.asm" name="asm-analysis" version="9.9">
4620+
<artifact name="asm-analysis-9.9.jar">
4621+
<sha256 value="6a15d28e8bd29ba4fd5bca4baf9b50e8fba2d7b51fbf78cfa0c875a7214c678b" origin="Generated by Gradle"/>
4622+
</artifact>
4623+
</component>
46144624
<component group="org.ow2.asm" name="asm-commons" version="7.2">
46154625
<artifact name="asm-commons-7.2.jar">
46164626
<sha256 value="0e86b8b179c5fb223d1a880a0ff4960b6978223984b94e62e71135f2d8ea3558" origin="Generated by Gradle"/>
@@ -4641,6 +4651,11 @@
46414651
<sha256 value="3301a1c1cb4c59fcc5292648dac1d7c5aed4c0f067dfbe88873b8cdfe77404f4" origin="Generated by Gradle"/>
46424652
</artifact>
46434653
</component>
4654+
<component group="org.ow2.asm" name="asm-commons" version="9.9">
4655+
<artifact name="asm-commons-9.9.jar">
4656+
<sha256 value="db2f6f26150bbe7c126606b4a1151836bcc22a1e05a423b3585698bece995ff8" origin="Generated by Gradle"/>
4657+
</artifact>
4658+
</component>
46444659
<component group="org.ow2.asm" name="asm-tree" version="7.2">
46454660
<artifact name="asm-tree-7.2.jar">
46464661
<sha256 value="c063f5a67fa03cdc9bd79fd1c2ea6816cc4a19473ecdfbd9e9153b408c6f2656" origin="Generated by Gradle"/>
@@ -4686,6 +4701,11 @@
46864701
<sha256 value="14b7880cb7c85eed101e2710432fc3ffb83275532a6a894dc4c4095d49ad59f1" origin="Generated by Gradle"/>
46874702
</artifact>
46884703
</component>
4704+
<component group="org.ow2.asm" name="asm-tree" version="9.9">
4705+
<artifact name="asm-tree-9.9.jar">
4706+
<sha256 value="42178f3775c9c63f9e5e1446747d29b4eca4d91bd6e75e5c43cfa372a47d38c6" origin="Generated by Gradle"/>
4707+
</artifact>
4708+
</component>
46894709
<component group="org.ow2.asm" name="asm-util" version="7.2">
46904710
<artifact name="asm-util-7.2.jar">
46914711
<sha256 value="6e24913b021ffacfe8e7e053d6e0ccc731941148cfa078d4f1ed3d96904530f8" origin="Generated by Gradle"/>
@@ -4701,6 +4721,11 @@
47014721
<sha256 value="8ba0460ecb28fd0e2980e5f3ef3433a513a457bc077f81a53bdc75b587a08d15" origin="Generated by Gradle"/>
47024722
</artifact>
47034723
</component>
4724+
<component group="org.ow2.asm" name="asm-util" version="9.9">
4725+
<artifact name="asm-util-9.9.jar">
4726+
<sha256 value="3842e13cfe324ee9ab7cdc4914be9943541ead397c17e26daf0b8a755bede717" origin="Generated by Gradle"/>
4727+
</artifact>
4728+
</component>
47044729
<component group="org.reactivestreams" name="reactive-streams" version="1.0.4">
47054730
<artifact name="reactive-streams-1.0.4.jar">
47064731
<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/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
}

modules/repository-azure/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ dependencies {
7575
api "net.minidev:accessors-smart:2.5.2"
7676
api "net.minidev:json-smart:2.5.2"
7777
api "org.codehaus.woodstox:stax2-api:4.2.2"
78-
api "org.ow2.asm:asm:9.8"
78+
api "org.ow2.asm:asm:9.9"
7979

8080
runtimeOnly "com.google.code.gson:gson:2.11.0"
8181
runtimeOnly "org.cryptomator:siv-mode:1.5.2"

test/immutable-collections-patch/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ configurations {
1818
}
1919

2020
dependencies {
21-
implementation 'org.ow2.asm:asm:9.8'
22-
implementation 'org.ow2.asm:asm-tree:9.8'
21+
implementation 'org.ow2.asm:asm:9.9'
22+
implementation 'org.ow2.asm:asm-tree:9.9'
2323
}
2424

2525
def outputDir = layout.buildDirectory.dir("jdk-patches")

0 commit comments

Comments
 (0)