[BUGFIX] Fix side effect for new class instantiation 40/26440/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 15 Dec 2013 18:54:46 +0000 (19:54 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 16 Dec 2013 14:42:32 +0000 (15:42 +0100)
commit942366bc31bf3ee945573d42fde337bcb3a928ee
treec9b69f9bc261c897c7096b8546f5c2719920ff72
parent6eb7a548125a945316f8ad32eb3e5481a28ae2d6
[BUGFIX] Fix side effect for new class instantiation

With commit 6eb7a54 performance optimized class
instantiation code has been committed. This code
removed the side effect of a reflection exception
being thrown when a not existing class is instantiated.

Code in ContentObjectRenderer relied on this side
effect, so we have to fix that and properly test
if the class exists instead.

Additionally this change adds some more comments
to the new instantiation code that has been forgotten
in the last commit.

Resolves: #54425
Releases: 6.2
Change-Id: I8962434d60f80daf77ccdce7a8148e26f8fee267
Reviewed-on: https://review.typo3.org/26440
Reviewed-by: Marcin S?gol
Tested-by: Marcin S?gol
Reviewed-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Anja Leichsenring
Reviewed-by: Anja Leichsenring
Tested-by: Tobias Liegl
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php