Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-632

PersistenceBrokerPortletEntityAccess patch to better support other PreferenceSet implementations

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            taylor David Sean Taylor
            ethanadams Ethan Adams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: