New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect MessageBodyReader/Writer from META-INF/services/javax.ws.rs.ext.Providers #27981
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though it would require an extra module, I think these changes are quite important to cover and to ensure the functionality now and in the future.
} else { | ||
builder.setMediaTypeStrings(Collections.singletonList(MediaType.WILDCARD_TYPE.toString())); | ||
} | ||
messageBodyWriterProducer.produce(builder.build()); // TODO: does it make sense to limit these to the Server? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean to do the same for REST Client reactive? If so, I think it would make sense.
.../src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveProcessor.java
Show resolved
Hide resolved
Do we have any such 'common' modules used in testing extension? |
Nevermind, I see we have something called |
Test added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. If we implement the same for REST Client reactive in the future, we could move some logic in the common module. For now, it's ok as it is. Thanks!
A bit unrelated but not so much: I think this makes this more important to throw errors when both RESTEasy Reactive and RESTEasy Classic are around. Or RESTEasy Reactive will try to register the ones coming from Classic. Not saying it should be done in the same PR but that's something that should be tackled. |
This comment has been minimized.
This comment has been minimized.
We did, not sure what's going on now |
So in this case there is not much we can do as it's not two conflicting extensions, it's a matter of RESTEasy being on the classpath. #27998 should fix it |
In this case, the failing test was a good thing as it allowed me to make the type resolution far more resilient. |
Failing Jobs - Building a1d000a
Failures⚙️ Quickstarts Compilation - JDK 17 #- Failing: optaplanner-quickstart
📦 optaplanner-quickstart✖ |
Resolves: #27970
P.S I haven't added a test for this because it requires us creating an extra module, but I can do that if we really think it's necessary