mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
+1
-1
@@ -46,7 +46,7 @@ final class CompileWithTargetClassAccessClassLoader extends ClassLoader {
|
||||
|
||||
@Override
|
||||
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||
if (passthroughPackages.stream().anyMatch(name::startsWith)) {
|
||||
if (passthroughPackages.stream().anyMatch(pkg -> name.startsWith(pkg))) {
|
||||
return Class.forName(name, false, this.testClassLoader);
|
||||
}
|
||||
return super.loadClass(name);
|
||||
|
||||
Reference in New Issue
Block a user