File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-beans/src/main/java/org/springframework/beans Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33
33
34
34
import org .apache .commons .logging .Log ;
35
35
import org .apache .commons .logging .LogFactory ;
36
+
36
37
import org .springframework .core .convert .TypeDescriptor ;
37
38
import org .springframework .core .io .support .SpringFactoriesLoader ;
38
39
import org .springframework .util .ClassUtils ;
@@ -265,8 +266,9 @@ private CachedIntrospectionResults(Class<?> beanClass) throws BeansException {
265
266
// This call is slow so we do it once.
266
267
PropertyDescriptor [] pds = this .beanInfo .getPropertyDescriptors ();
267
268
for (PropertyDescriptor pd : pds ) {
268
- if (Class .class .equals (beanClass ) && "classLoader" .equals (pd .getName ())) {
269
- // Ignore Class.getClassLoader() method - nobody needs to bind to that
269
+ if (Class .class .equals (beanClass ) &&
270
+ ("classLoader" .equals (pd .getName ()) || "protectionDomain" .equals (pd .getName ()))) {
271
+ // Ignore Class.getClassLoader() and getProtectionDomain() methods - nobody needs to bind to those
270
272
continue ;
271
273
}
272
274
if (logger .isTraceEnabled ()) {
You can’t perform that action at this time.
0 commit comments