Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2341

Android: incorrect method parameter binding if first parameter is Object[] and a value is passed for second parameter

    Details

      Description

      {html}<div><p>If you look at my fix for <a href="/projects/32238/tickets/2065"
      title="Ticket #2065">#2065</a>, you'll see what I mean. If these
      conditions are met ...</p>
      <ul>
      <li>
      <p>The method has more than one parameter. In the original
      failcase, the second parameter was optional.
      <code>setData(Object[], @Kroll.argument(optional=true) KrollDict
      options)</code>.</p>
      </li>
      <li>
      <p>The first parameter is of type Object[], as in the failcase
      above.</p>
      </li>
      <li>
      <p>The method is called with values supplied for both the first and
      second parameters.</p>
      </li>
      </ul>
      <p>... then the value bound to the first parameter ends up being an
      Object[] of the arguments themselves (like old style method
      calling).</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              mculpepper Marshall Culpepper
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2054
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration