-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
4.3
-
None
Since the changes made to FactoryUtil and mechanism of class instantiation it is no longer possible to replace class implementation with its superclass at runtime.
To reproduce the issue:
- extend some existing class, e.g. URI2RepositoryManager
- configure Magnolia to use extending class (in this case set /server/URI2RepositoryMapping/class to full.name.of.ExtendedURI2RepositoryManager)
- check that everything works fine with the extending class (e.g. try to display some page from website)
- restart Magnolia to make to have it started with extending class
- repeat step 3) (to see that everything still works)
- change URI2RepositoryManager configuration back to use the original URI2RepositoryManager implementation
- try to repeat step 3) ==> page loading fails with ClassCastException
Acceptance criteria
- is related to
-
MAGNOLIA-3001 FactoryUtil/ClassUtil refactorings
- Closed
-
MAGNOLIA-2553 FactoryUtil: should return a proxy object for observed objects
- Closed
-
MAGNOLIA-3079 ComponentProvider should lookup superclasses and interfaces of the required component
- Closed