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:
Juergen Hoeller
2009-05-05 12:37:18 +00:00
parent a5eb3d592d
commit cdcacec6a0
2 changed files with 38 additions and 33 deletions
@@ -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);
}
}