Skip to content

Parameter missing in message format #2956

Closed
@mawen12

Description

@mawen12

The Method getRequiredBeanClassName of ConfigurationUtils has lost the placeholder for beanDefinition.

if result is null, The error message lost beanDefinition information.

public static String getRequiredBeanClassName(BeanDefinition beanDefinition) {

	Assert.notNull(beanDefinition, "BeanDefinition must not be null");

	String result = beanDefinition.getBeanClassName();

	if (result == null) {
		throw new IllegalArgumentException(
                                 // lose the placeholder for beanDefinition
				String.format("Could not obtain required bean class name from BeanDefinition", beanDefinition));
	}

	return result;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions