Skip to content

Conversation

@geoand
Copy link
Contributor

@geoand geoand commented Jun 22, 2020

Fixes: #10164

@boring-cyborg boring-cyborg bot added the area/spring Issues relating to the Spring integration label Jun 22, 2020
@geoand geoand requested a review from gastaldi June 22, 2020 15:43
@geoand geoand added this to the 1.6.0 - master milestone Jun 22, 2020
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

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

LGTM, but I think we should consider failing the build instead as it seems to be a programming error.

if (!classesWithoutRestController.isEmpty()) {
for (DotName dotName : classesWithoutRestController) {
LOGGER.warn("Class '" + dotName
+ "' uses '@RequestMapping' but was not annotated with '@RestContoller' and will therefore be ignored.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like we should fail the build instead? Thinking how confused would I be if the app started and the endpoints would not be there.

Copy link
Contributor Author

@geoand geoand Jun 22, 2020

Choose a reason for hiding this comment

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

Yeah, we talked about that with @kameshsampath decided that a warning is best for now

@geoand geoand merged commit 4f809fc into quarkusio:master Jun 22, 2020
@geoand geoand deleted the #10164 branch June 22, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/spring Issues relating to the Spring integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding Validations for Spring Projects

2 participants