mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
exclude non-public interfaces when autodetecting proxy interfaces
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1097 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
@@ -948,7 +948,8 @@ public abstract class ClassUtils {
|
||||
while (clazz != null) {
|
||||
Class[] ifcs = clazz.getInterfaces();
|
||||
for (Class ifc : ifcs) {
|
||||
if (!interfaces.contains(ifc) && (classLoader == null || isVisible(ifc, classLoader))) {
|
||||
if (!interfaces.contains(ifc) && Modifier.isPublic(ifc.getModifiers()) &&
|
||||
(classLoader == null || isVisible(ifc, classLoader))) {
|
||||
interfaces.add(ifc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user