PersistenceBrokerPortletEntityAccess patch to better support other 
PreferenceSet implementations
------------------------------------------------------------------------------------------------

                 Key: JS2-632
                 URL: http://issues.apache.org/jira/browse/JS2-632
             Project: Jetspeed 2
          Issue Type: Improvement
          Components: Persistence and DAO, Portlet Entities and Preferences
    Affects Versions: 2.1-dev
         Environment: n/a
            Reporter: Ethan Adams
            Priority: Minor
         Attachments: PersistenceBrokerPortletEntityAccess.java.patch

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to