Justin Edelson created SLING-3878:
-------------------------------------
Summary: Request attributes injector should be able to handle
parameterized types
Key: SLING-3878
URL: https://issues.apache.org/jira/browse/SLING-3878
Project: Sling
Issue Type: Bug
Components: Extensions
Reporter: Justin Edelson
Assignee: Justin Edelson
Fix For: Sling Models Implementation 1.0.8
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:
bq. 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)