Merge branch '5.3.x'
# Conflicts: # build.gradle # spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java # spring-core/src/test/java/org/springframework/core/ReactiveAdapterRegistryTests.java # src/docs/asciidoc/web-reactive.adoc
This commit is contained in:
@@ -254,14 +254,13 @@ public abstract class BeanUtils {
|
||||
return (Constructor<T>) ctors[0];
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Several public constructors -> let's take the default constructor
|
||||
try {
|
||||
return clazz.getDeclaredConstructor();
|
||||
}
|
||||
catch (NoSuchMethodException ex) {
|
||||
// Giving up...
|
||||
}
|
||||
|
||||
// Several constructors -> let's try to take the default constructor
|
||||
try {
|
||||
return clazz.getDeclaredConstructor();
|
||||
}
|
||||
catch (NoSuchMethodException ex) {
|
||||
// Giving up...
|
||||
}
|
||||
|
||||
// No unique constructor at all
|
||||
|
||||
@@ -352,7 +352,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
||||
else {
|
||||
String scopeName = mbd.getScope();
|
||||
if (!StringUtils.hasLength(scopeName)) {
|
||||
throw new IllegalStateException("No scope name defined for bean ´" + beanName + "'");
|
||||
throw new IllegalStateException("No scope name defined for bean '" + beanName + "'");
|
||||
}
|
||||
Scope scope = this.scopes.get(scopeName);
|
||||
if (scope == null) {
|
||||
|
||||
Reference in New Issue
Block a user