[Bug 621] New: problems when calling concat in javascript with a native java Array as argument

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug 621] New: problems when calling concat in javascript with a native java Array as argument

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://helma.org/bugs/show_bug.cgi?id=621

           Summary: problems when calling concat in javascript with a native
                    java Array as argument
           Product: Helma
           Version: 1.6.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: JavaScript Interpreter
        AssignedTo: helma-dev@...
        ReportedBy: philipp.moser@...


when calling a toArray function on a native java Object, and using it to concat
it to a javascript Array, I get the following error:

{{{
org.mozilla.javascript.NativeJavaArray cannot be cast to
org.mozilla.javascript.NativeArray
}}}

try this code:
{{{
   var items = new Array();
   var vector = new java.util.Vector();
   items.concat(vector.toArray());
}}}

This worked in helma 1.6.0


--
Configure bugmail: http://helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev