[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jaroslav Simak updated MAGNOLIA-3165:
-------------------------------------
Summary: C2B and N2B too eager when adding items to collections
(was: C2B too eager when adding items to collections)
Fix Version/s: 5.0 Alpha2 s012
Affects Version/s: 5.0 Alpha2 s011
4.5.7
4.4.9
(was: 4.3.1)
> C2B and N2B too eager when adding items to collections
> ------------------------------------------------------
>
> Key: MAGNOLIA-3165
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3165
> Project: Magnolia
> Issue Type: Bug
> Security Level: Public
> Components: cache, content2bean
> Affects Versions: 4.4.9, 4.5.7, 5.0 Alpha2 s011
> Reporter: Jan Haderka
> Assignee: Jaroslav Simak
> Priority: Major
> Fix For: 4.5.8, 5.0 Alpha2 s012
>
>
> 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}}.
--
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/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------