@Blocking
on resource is ignored if implementing an OpenAPI-generated interface
#301
Labels
@Blocking
on resource is ignored if implementing an OpenAPI-generated interface
#301
Describe the bug
When generating interfaces from a OpenAPI defintion file via https://github.com/OpenAPITools/openapi-generator, all Jax-RS annotations are added to the interface so you don't have to repeat them in your actual resource that implements the interface.
If you decide that you need
@Blocking
, you have to put it in the interface to have it recognized.Expected behavior
Since blocking or not is an implementation detail, I should not be forced to put this in the (generated) resource interface.
Actual behavior
As soon as a resource implements an interface that contains alls the Jax-RS annotations,
@Blocking
on the actually implemented methods (or the resource class) is ignored.To Reproduce
quarkusio/quarkus-quickstarts@main...famod:issue-15940
Steps to reproduce the behavior:
@Blocking
fromReactiveGreeting.greeting()
Configuration
Environment (please complete the following information):
Output of
uname -a
orver
Output of
java -version
(also happens with HotSpot)
GraalVM version (if different from Java)
Quarkus version or git rev
1.12.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
Additional context
quarkusio#15940
The text was updated successfully, but these errors were encountered: