Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Models Implementation 1.5.4
-
None
Description
If a model defines a field like
@Inject @Default(values = {"v1","v2"}) private List<String> stringList;
the injection fails due to the List type. it works if an array type is used. this problem affects only the default value, the injection to List and Collection types works for actual values.
according to https://sling.apache.org/documentation/bundles/models.html#available-injectors-1 both List and Collection types are supported for most injectors.
Attachments
Issue Links
- is related to
-
SLING-12158 Log affected Sling Model class for messages emitted from AbstractInjectableElement
- Closed
- links to