Bug 23742 - applet methods can not return arrays to js
Summary: applet methods can not return arrays to js
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Java (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-04 14:11 PST by Andrei Tchijov
Modified: 2010-02-20 10:24 PST (History)
0 users

See Also:


Attachments
Sample code (1.04 KB, application/octet-stream)
2009-02-05 08:17 PST, Andrei Tchijov
no flags Details
proposed fix (3.67 KB, patch)
2010-02-20 01:57 PST, Alexey Proskuryakov
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Tchijov 2009-02-04 14:11:18 PST
if applet has methods:

  public foo[] bar() {
    ...
  }

  public List<foo> baz() {
    ...
  }

invocation of "bar" method from JS results in "undefined value" (regardless of what "bar" actually returns). invocation of "baz" produce correct value.

This works as expected in FF and IE.  Does not work in Safari (standard build and nightly as of 02/04/09 )
Comment 1 Mark Rowe (bdash) 2009-02-04 21:32:48 PST
Do you happen to have a test page + applet that we can use to look in to this without having to write one ourselves?
Comment 2 Andrei Tchijov 2009-02-05 08:17:26 PST
Created attachment 27349 [details]
Sample code

FF : produce

foo is : Array[3]
foo[0] = One
bar is : ArrayList
bar.get( 0 ) = One

Latest WebKit:

foo is : undefined
bar is : ArrayList
bar.get( 0 ) = One
Comment 3 Alexey Proskuryakov 2010-02-20 01:57:09 PST
Created attachment 49122 [details]
proposed fix
Comment 4 Maciej Stachowiak 2010-02-20 04:36:52 PST
Comment on attachment 49122 [details]
proposed fix

r=me
Comment 5 Alexey Proskuryakov 2010-02-20 10:24:18 PST
Committed <http://trac.webkit.org/changeset/55054>