Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2038

AbstractSubmit does not handle parameters that are Object[] correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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 }

      );
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              patmoore@ieee.org Patrick Moore
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: