Skip to content

Commit cd1bec2

Browse files
committed
Update ByteBuddy for Java 19 support
1 parent ab733bb commit cd1bec2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ configurations {
2929
}
3030

3131
dependencies {
32-
implementation group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.12.6'
32+
implementation group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.12.19'
3333
// byte buddy contains references to jna classes and without them the r8Jar step fails
3434
compileOnly group: 'net.java.dev.jna', name: 'jna', version: '5.8.0'
3535

src/main/kotlin/tech/httptoolkit/javaagent/AgentMain.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import net.bytebuddy.utility.JavaModule
1515
import java.lang.instrument.Instrumentation
1616
import javax.net.ssl.SSLContext
1717
import java.net.*
18+
import java.security.ProtectionDomain
1819
import javax.net.ssl.HttpsURLConnection
1920
import javax.net.ssl.TrustManagerFactory
2021

@@ -137,7 +138,8 @@ abstract class MatchingAgentTransformer(private val logger: TransformationLogger
137138
builder: DynamicType.Builder<*>,
138139
typeDescription: TypeDescription,
139140
classLoader: ClassLoader?,
140-
module: JavaModule?
141+
module: JavaModule?,
142+
protectionDomain: ProtectionDomain?
141143
): DynamicType.Builder<*> {
142144
logger.beforeTransformation(typeDescription)
143145

0 commit comments

Comments
 (0)