Closed wilkinsona closed 2 years ago
We effectively do that for well-known interfaces types already but somehow missed to check for the corresponding implementation classes as well. I might revisit this for 5.3.x even since it's a generally worthwhile optimization.
Affects: 6.0
As discussed with @sdeleuze, it would be useful for native images if
CollectionFactory
could create instances of well-known non-interface collection types without using reflection. Aligning with the types that the factory creates for different interfaces, these well-known implementations could beLinkedHashSet
,TreeSet
, andArrayList
. Similar changes could be made for map creation as well.