Details
-
Bug
-
Resolution: Done
-
Major
-
3.5.0.Final
-
None
-
None
Description
This issue was reported by a user on the jsr371-users mailing lists:
https://groups.google.com/forum/#!topic/jsr371-users/IPqLa6Kz1Q8
I was able to verify this issue with Wildfly 12.
Imagine the following Feature:
@Provider @ConstrainedTo(RuntimeType.SERVER) public class SomeFeature implements Feature { @Override public boolean configure(FeatureContext context) { // DO STUFF } }
If this feature is registered via a META-INF/services/javax.ws.rs.ext.Providers file, RESTEasy seems to pick the feature up even when bootstrapping the client API and is therefore ignoring the @ConstrainedTo annotation.