-
Bug
-
Resolution: Fixed
-
Major
-
4.4.9, 4.5.7, 5.0
-
None
C2B adds also items of incorrect types to the typed collections.
To reproduce:
- go to /modules/cache/config/configurations and create new NodeData there
- wait for observation to kick in and reload the module
Result:
ClassCastException in CacheModule:110 when attempting to cast String into a CacheConfiguration.
since the addCacheConfiguration() method in the CacheModule provides C2B with the info that value in the map should be CacheConfiguration, it should not attempt to add String as a value (and succeed since generics are erased at runtime) but only instances of classes that can be cast to CacheConfiguration.
Acceptance criteria
- is depended upon by
-
MGNLETK-94 java.lang.ClassCastException: java.lang.String cannot be cast to info.magnolia.module.templatingkit.sites.Site
- Closed