-
Improvement
-
Resolution: Fixed
-
Major
-
4.3
-
None
-
None
The method DefaultClassFactory.newInstance(Class<T>, Object...) calls ConstructorUtils.invokeConstructor(Class, Object[]) while this is not the case for DefaultClassFactory.newInstance(Class<T>, Class<?>[], Object...).
This is especially a problem if you have more precise constructors in subclasses (especially if you use generics).
Example: after introducing generics for models (MAGNOLIA-3081) the method AbstractRenderable.newModel(...) fails to find the correct constructor.
Acceptance criteria
- is related to
-
MAGNOLIA-3012 Replace usages of FactoryUtil/ClassUtil
- Closed
-
MAGNOLIA-3081 use generics in the rendering model (type of the definition passed)
- Closed