Details
-
Improvement
-
Resolution: Fixed
-
Major
-
11.10.2
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Right now it's possible to call getProperty either with a Class or with a defaultValue: in this case, the class of the default value is used to know what the return type should be for the property.
However this might be wrong when we want an interface and not the concrete class as return type: for example using getProperty with a LinkedList as default value, when we just want a List as return type.
So we should have a dedicated method to specify both the expected Class and the defaultValue.
Attachments
Issue Links
- blocks
-
XWIKI-16962 Converter issue when using ConfigurationSource#getProperty with Arrays.asList
- Closed