Skip to content

Incorrect arguments to Assert.isInstanceOf in AnnotatedControllerConfigurer #282

Closed
@voydz

Description

@voydz

Hi there,

first of all thank you for your awesome work. I noticed a potential bug on the M5 release of spring-boot-graphql. Upon launching my application the exception "Object of class [java.lang.String] must be an instance of class org.springframework.format.support.FormattingConversionService" occurs.

After a bit of digging in the code I noticed a potential bug in the following line:

Assert.isInstanceOf(FormattingConversionService.class, "FormattingConversionService is required");

I am no expert in this by all means, but isn't the second argument of the assert the actual object to check? Thus passing the message as the second argument would raise the exception shown above.

It was introduced with 0b449d8 to fix #271.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions