Skip to content

Commit

Permalink
Merge pull request #87 from burmanm/update_bytebuddy
Browse files Browse the repository at this point in the history
Update ByteBuddy from 1.10.10 to 1.12.19 to support newer mgmt-api
  • Loading branch information
burmanm authored Jan 10, 2023
2 parents 6daf526 + 3f4760e commit 17be51a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- <cassandra.version>4.0-beta4</cassandra.version> -->
<cassandra.version>3.11.10</cassandra.version>
<driver.version>3.6.0</driver.version> <!-- Needed for guava 18 compat-->
<bytebuddy.version>1.10.10</bytebuddy.version>
<bytebuddy.version>1.12.19</bytebuddy.version>
<mustache.version>0.9.6</mustache.version>
<collectd.version>0.1.4</collectd.version>
<docker.java.version>3.1.2</docker.java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.lang.management.ManagementFactory;
import java.nio.charset.Charset;
import java.security.ProtectionDomain;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Callable;
Expand Down Expand Up @@ -42,7 +43,7 @@ public static AgentBuilder.Transformer transformer()
return new AgentBuilder.Transformer()
{
@Override
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule javaModule)
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader, JavaModule javaModule, ProtectionDomain protectionDomain)
{
return builder.method(ElementMatchers.named("start")).intercept(MethodDelegation.to(CassandraDaemonInterceptor.class));
}
Expand Down

0 comments on commit 17be51a

Please sign in to comment.