[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-2252) PortletPreferences composed of multiple strings always only return one

Thomas Heute (JIRA) jira-events at lists.jboss.org
Fri Nov 28 09:12:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBPORTAL-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Heute updated JBPORTAL-2252:
-----------------------------------

    Fix Version/s: 2.7.1 Final
         Assignee: Thomas Heute


> PortletPreferences composed of multiple strings always only return one
> ----------------------------------------------------------------------
>
>                 Key: JBPORTAL-2252
>                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2252
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal Core
>    Affects Versions: 2.7.0 Final
>            Reporter: Manuel Aznar Perez
>            Assignee: Thomas Heute
>            Priority: Critical
>             Fix For: 2.7.1 Final
>
>   Original Estimate: 1 minute
>  Remaining Estimate: 1 minute
>
> The method "String[] PortletPreferences.getValues(String, String[])" only return one element, always.
> The bug is in "org.jboss.portal.core.impl.portlet.state.PersistentPortletStateEntry"
> At the method :
>    public List<String> getValue()
>    {
>       if (dirty)
>       {
>          for (int i=0; i<strings.length; i++)
>          {
>             value = new ArrayList<String>();
>             value.add(strings[i]);
>          }
>          dirty = false;
>       }
>       return value;
>    }
> Change it for:
>    public List<String> getValue()
>    {
>       if (dirty)
>       {
>             value = new ArrayList<String>();
>          for (int i=0; i<strings.length; i++)
>          {
>             value.add(strings[i]);
>          }
>          dirty = false;
>       }
>       return value;
>    }
> It is a dummy bug.

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

        



More information about the jboss-jira mailing list