Skip to content

Commit

Permalink
Upgrade bytebuddy and asm version for JDK 17 and JDK 21 support (#331)
Browse files Browse the repository at this point in the history
* Upgrade bytebuddy and asm version for JDK 17 support

* bump asm and bytebuddy to support JDK 21

* fix format issue during merging with master

---------

Co-authored-by: Yan Zhou <[email protected]>
Co-authored-by: Yan Zhou <[email protected]>
  • Loading branch information
3 people authored Apr 8, 2024
1 parent a2ab8d8 commit 3a580be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v5.1.20
------
* Upgrade bytebuddy and asm version for JDK 17 and JDK 21 support

v5.1.19
------
* Explicitly set default value for TraceBuilder's ResultType to UNFINISHED to prevent null argument when building the trace in TraceBuilder.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=5.1.19
version=5.1.20
group=com.linkedin.parseq
org.gradle.parallel=true
10 changes: 5 additions & 5 deletions subprojects/parseq-lambda-names/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ configurations {
}

dependencies {
shadow group: 'net.bytebuddy', name: 'byte-buddy-agent', version: '1.10.21'
shadow group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.10.21'
shadow group: 'org.ow2.asm', name: 'asm-tree', version: '9.0'
shadow group: 'org.ow2.asm', name: 'asm', version: '9.0'
shadow group: 'org.ow2.asm', name: 'asm-analysis', version: '9.0'
shadow group: 'net.bytebuddy', name: 'byte-buddy-agent', version: '1.14.13'
shadow group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.14.13'
shadow group: 'org.ow2.asm', name: 'asm-tree', version: '9.6'
shadow group: 'org.ow2.asm', name: 'asm', version: '9.6'
shadow group: 'org.ow2.asm', name: 'asm-analysis', version: '9.6'
testCompile group: 'org.testng', name: 'testng', version: '7.3.0'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void onExit(@Advice.Argument(0) Class<?> hostClass, @Advice.Argument(1) b
.transform(new AgentBuilder.Transformer() {
@Override
public Builder<?> transform(Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader,
JavaModule module) {
JavaModule module, ProtectionDomain protectionDomain) {
return builder.visit(Advice.to(AnalyzerAdvice.class).on(ElementMatchers.named("defineAnonymousClass")));
}
})
Expand Down Expand Up @@ -271,4 +271,4 @@ public static void analyze(byte[] byteCode, ClassLoader loader) {
EXECUTOR_SERVICE.submit(AnalyzerRunnable.of(byteCode, loader, e));
}
}
}
}

0 comments on commit 3a580be

Please sign in to comment.