-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix(vertx): do not log a warning about missing json support when vertx extension is present #5623
Conversation
@@ -51,6 +52,11 @@ | |||
@Inject | |||
BuildProducer<ReflectiveClassBuildItem> reflectiveClass; | |||
|
|||
@BuildStep(providesCapabilities = Capabilities.RESTEASY_JSON_EXTENSION) |
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.
It's not used for anything else?
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.
Which part do you mean? Sorry for my thick headedness :)
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.
The RESTEASY_JSON_EXTENSION
Capability is used in jackson
and jsonb
extension to indicate json
be support in ResteasyCommonProcessor
. It was added for that case IIRC.
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.
Yes it already exists which is I guess what @gsmet was asking :)
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.
Well, I'm wondering if it's a good idea to reuse that one or if we should add a VERTX capability and alter the condition in the processor itself.
This capability was used to basically say "we have an extension to provide proper JSON support for RESTEasy" and this one is not exactly saying that. It's saying "Vert.x provides some sort of JSON support for its own types".
Maybe I'm overthinking it, I don't know.
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.
I think we are OK with that @machi1990 added for the time being. My view is that if we need something more complicated later, we can always improve things
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.
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.
I think I agree with myself but let's do it your way and I'll keep my "I told you so" for later :).
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.
It wouldn't be the first time 😁
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.
It wouldn't be the first time 😁
ha ha indeed :-)
It looks good to me, but I'll refrain from approving since I @gsmet to clarify what he meant in his question |
CI failure unrelated
|
@loicmathieu does the error ring a bell? Is there perhaps a flaky test? |
I will restart. Just please keep it in mind that the test might be flaky and we might need a fix |
Hum, this will be very surprising, it compiles or not ... and I kust compiled it with Java 8 without any error ... |
Oh OK, I might know the cause. @machi1990 can you please rebase onto the latest master? |
I think it is more a cache thingy on the CI @geoand @loicmathieu I'll rebase with master |
…x extension is present Vert.x also provides a JSON implementation so no warning should be emitted Fixes quarkusio#5614
Vert.x also provides a JSON implementation so no warning should be emitted
Fixes #5614
/cc @geoand @gsmet