DefaultClassFactory.newInstance(Class<T>, Class<?>[], Object...) should not use
invokeExactConstructor but invokeConstructor
----------------------------------------------------------------------------------------------------------------------------
Key: MAGNOLIA-3082
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3082
Project: Magnolia
Issue Type: Improvement
Affects Versions: 4.3 M1
Reporter: Philipp Bärfuss
Assignee: Boris Kraft
Fix For: 4.3
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------