Merge branch '6.1.x'
This commit is contained in:
@@ -75,7 +75,7 @@ public class ReflectUtils {
|
||||
Throwable throwable = null;
|
||||
try {
|
||||
classLoaderDefineClass = ClassLoader.class.getDeclaredMethod("defineClass",
|
||||
String.class, byte[].class, Integer.TYPE, Integer.TYPE, ProtectionDomain.class);
|
||||
String.class, byte[].class, Integer.TYPE, Integer.TYPE, ProtectionDomain.class);
|
||||
}
|
||||
catch (Throwable t) {
|
||||
classLoaderDefineClass = null;
|
||||
|
||||
@@ -57,7 +57,7 @@ public class MethodProxy {
|
||||
proxy.createInfo = new CreateInfo(c1, c2);
|
||||
|
||||
// SPRING PATCH BEGIN
|
||||
if (!c1.isInterface() && c1 != Object.class && !Factory.class.isAssignableFrom(c2)) {
|
||||
if (c1 != Object.class && c1.isAssignableFrom(c2.getSuperclass()) && !Factory.class.isAssignableFrom(c2)) {
|
||||
// Try early initialization for overridden methods on specifically purposed subclasses
|
||||
try {
|
||||
proxy.init();
|
||||
|
||||
Reference in New Issue
Block a user