mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 21:49:03 +00:00
Since Mockito 5.16.1, MockAccess moved from org.mockito.internal.creation.bytebuddy.MockAccess to org.mockito.internal.creation.bytebuddy.access.MockAccess. Consequently, ProxyProcessorSupport.isInternalLanguageInterface() no longer recognized it, causing an auto-proxied mock created with the subclass mock maker and proxyTargetClass=false to receive a JDK proxy that only implements MockAccess instead of a CGLIB proxy of its own class. This commit adds a check for the new package name alongside the existing one, since older Mockito versions may still be on the classpath. Closes gh-37342