Skip to content

Conversation

@geoand
Copy link
Contributor

@geoand geoand commented Apr 29, 2025

Closes: #47545

throw new DeploymentException(String.format("No annotations found on fields at '%s'. "
+ "Annotations like `@QueryParam` should be used in fields, not in methods.",
beanParamClassInfo.name()));
long declaredMethodsCount = beanParamClassInfo.methods().stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're counting methods but the message is about fields. I'm not sure I understand the logic here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. The current error message is misleading when there are no methods and fields so this tries to make things less misleading

@quarkus-bot

This comment has been minimized.

@FroMage
Copy link
Member

FroMage commented Apr 29, 2025

I'll let you decide if you want my suggestion in or not :)

@quarkus-bot

This comment has been minimized.

@gsmet gsmet merged commit b02eaff into quarkusio:main Apr 30, 2025
48 of 49 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.23 - main milestone Apr 30, 2025
@geoand geoand deleted the #47545 branch May 2, 2025 05:47
@gsmet gsmet modified the milestones: 3.23 - main, 3.22.2 May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Beanparam without fields is not supported

3 participants