Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3878

Request attributes injector should be able to handle parameterized types

    XMLWordPrintableJSON

Details

    Description

      If you have an injected field with a paramterized type, e.g.

      @Inject
      private Iterator<Resource> someResources;

      And then want that field injected using the request attribute injector, it fails logging the message:

      BindingsInjector doesn't support non-class type {}

      Obviously that error message is wrong (because it is the RequestAttributeInjector), but it would be best if we could support parameterized types here, even if it means an unsafe cast.

      Attachments

        Activity

          People

            justinedelson Justin Edelson
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: