[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grégory Joseph resolved MAGNOLIA-3082.
--------------------------------------

    Resolution: Fixed

Good enough for now; we might need more improvements the day we introduce real 
IOC, but that might be covered by the container.

> 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
>            Reporter: Philipp Bärfuss
>            Assignee: Grégory Joseph
>             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]>
----------------------------------------------------------------

Reply via email to