Details
-
Improvement
-
Resolution: Fixed
-
Major
-
17.4.0-rc-1
-
None
-
Unit
-
Unknown
-
Description
Right now, something like the following won't work:
converterManager.convert(mylist, Collections.emptyList().getClass()}}
The reason is that the class here is the private Collections.EmptyList, so impossible to use it in the usual Converter component declaration.
But it does not make much sense to not support such common types so we need to find a hack. This is especially important for tools like ConfigurationSource implementation, where it's very natural to do things like
configuration.getProperty("mykey", List.of())