Commit afdf31a
test(instrumentation): Stub removed sentry-android-okhttp event listener
VisitorTest verifies instrumented bytecode against the real classes on
the test classpath. After bumping sentry to 8.43.0, the test classpath
provides sentry-okhttp instead of sentry-android-okhttp, so
io.sentry.android.okhttp.SentryOkHttpEventListener no longer resolves.
The classloader then generated an empty stub extending Object, which is
not an okhttp3.EventListener subtype, so the eventListener() call in the
legacy useSentryAndroidOkHttp path failed bytecode verification.
Generate a stub for it that extends io.sentry.okhttp.SentryOkHttpEventListener,
mirroring the real inheritance so the verifier accepts the call.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b901140 commit afdf31a
1 file changed
Lines changed: 6 additions & 0 deletions
File tree
- plugin-build/src/test/kotlin/io/sentry/android/gradle/instrumentation/classloader/mapping
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
0 commit comments