Tapestry
  1. Tapestry
  2. TAPESTRY-2038

AbstractSubmit does not handle parameters that are Object[] correctly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.1.5
    • Component/s: None
    • Labels:
      None

      Description

      AbstractSubmit
      line 73 is:
      if (parameters != null)
      {
      if (parameters instanceof Collection)

      { cycle.setListenerParameters(((Collection) parameters).toArray()); }
      else
      {
      cycle.setListenerParameters(new Object[] { parameters });
      }
      }

      It should be:
      if (parameters != null)
      {
      if (parameters instanceof Collection)
      { cycle.setListenerParameters(((Collection) parameters).toArray()); }

      else if (parameters instanceof Object[])

      { cycle.setListenerParameters((Object[])parameters); }

      else
      {
      cycle.setListenerParameters(new Object[]

      { parameters }

      );
      }
      }

        Activity

        Hide
        Ben Dotte added a comment -

        This was fixed on TAPESTRY-2039.

        Show
        Ben Dotte added a comment - This was fixed on TAPESTRY-2039 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Patrick Moore
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development