Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-78156

GetterUtil fails to return some objects if they are of the same type

    Details

      Description

      Note: This is a 62x-only issue as it is resolved in master/DXP with LPS-48465.

      Description:

      When attempting to use the method GetterUtil.getLongValues(), the object passed in the first parameter cannot be a long[], even though that is the return type of the method.

      Steps:

      In 62x, execute the following Beanshell code:

      long [] array = new long [] { 1, 2, 3 };
      
      //out.println(array.length);
      
      long[] getterArray = com.liferay.portal.kernel.util.GetterUtil.getLongValues(array);
      
      out.println(getterArray.length);

      Expected Results: Length is 3.

      Actual results: Length is 0 because GetterUtil cannot read the array value, so it returns the default of 0.

       

      This issue is resolved in master/DXP with the inclusion of LPS-48465 which is a story ticket.  the purpose of this LPS will be to backport the minimum required changes in order to resolve this issue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 38 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE