Change Java.toJavaArray() and Java.toJavaScriptArray() to Java.to() and Java.from()

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      By popular demand, Java interop APIs Java.toJavaArray() and Java.toJavaScriptArray() will be renamed to Java.to() and Java.from(), respectively. Additionally, Java.toJavaArray() took an array component type, but since Java.to() is not necessarily restricted to arrays, we now need to pass the array type, so what was earlier

      Java.toJavaArray([1,2,3], "int")

      must now be

      Java.to([1,2,3], "int[]")

            Assignee:
            Attila Szegedi
            Reporter:
            Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: