You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NoClassDefFoundError: okhttp3/internal/_UtilJvmKt
at mockwebserver3.MockWebServer.<init>(MockWebServer.kt:105)
at MockWebServerTest.create(MockWebServerTest.java:9)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.ClassNotFoundException: okhttp3.internal._UtilJvmKt
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 5 more
I've also noticed that the transitive dependencies differ between 5.0.0-alpha.12 and 5.0.0-alpha.14. Maybe the cause lies there...
Indeed, you are correct: I have Spring Boot pinning OkHttp to 4.12.0 on my project. Sorry for the noise! 😟
Running mvn dependency:tree with -Dverbose=true would have revealed this.
Upgrading from 5.0.0-alpha.12 to 5.0.0-alpha.14 makes our tests fail with java.lang.NoClassDefFoundError: okhttp3/internal/_UtilJvmKt.
Example test to reproduce
fails with:
I've also noticed that the transitive dependencies differ between 5.0.0-alpha.12 and 5.0.0-alpha.14. Maybe the cause lies there...
The text was updated successfully, but these errors were encountered: