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

AbstractSubmit does not handle parameters that are Object[] correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.3
    • 4.1.5
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: