Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1-dev
-
None
-
None
-
n/a
Description
I have a special case where I want to use a PreferenceSet implementation other than PrefsPreferenceSetImpl. However the PersistenceBrokerPortletEntityAccess does unchecked casts of the PreferenceSet objects that causes ClassCastExceptions.
I've patched PersistenceBrokerPortletEntityAccess so that it checks if it is an instance of PrefsPreferenceSetImpl before casting. Thought this could be helpful in the future.
Attaching patch