Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1861

RESTEasy ignores @ConstrainedTo in some situations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.6.0.Final, 4.0.0.Beta4
    • 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.

      Attachments

        Activity

          People

            pjurak Petr Jurak (Inactive)
            christian@kaltepoth.de Christian Kaltepoth
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: