-
Improvement
-
Resolution: Obsolete
-
Minor
-
None
-
4.0.3, 4.1.1, 4.2
-
None
-
-
Yes
-
Empty show more show less
-
Yes
The FactoryUtil.newInstance() method throws exceptions since MAGNOLIA-2552 and does not return null anymore. To keep the same behavior in the content2bean processor if the force creation flag is set to true we have to catch the exceptions and react accordingly.
Otherwise the filter chain fails to instantiate if one of the classes is wrongly defined (even if it is somewhere deeper in the hierarchy). This is really dangerous.
Acceptance criteria
- is related to
-
MAGNOLIA-2552 FactoryUtil: newInstance() method should throw an exception and not return null if the object can't be instantiated
- Closed