When using MP Rest Client @RegisterProvider, the priority parameter states:
the priority of the provider. If not specified, reads the priority from the annotation javax.annotation.Priority as defined on the class.
Unfortunately, this does not work due to how the annotation value is set up and how the priority is read:
The priority value is read as an int (as -1, the default annotation value):
The read priority is converted to a wrapper Integer type and check for null, which is not because it is -1:
Then the actual priority stays at -1.
Apparently, adding an extra check for -1 should be enough to fix this. I'm happy to send a PR for it.