Acknowledged

Regression - arrays are totally broken (SDK 4.1.2)

var arr = ["A", "B"];
arr.toString();

Gives

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Long/Double/Char, given Number/Array

var arr = ["A", "B"];
for (var i = 0; i < arr.size(); i++) {
    arr[i];
}

Gives

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Boolean/Long/Double, given Object

var arr = new Lang.Array();
arr.add("A");

Gives

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Array, given String

SDK version 4.1.2.

  • What happened between 4.1.5 and 4.1.7? It looks to me like maybe Monkey Types weren't implemented properly before and now they are?

    Regardless, it has broken almost every source file that I have written up until now, IMO that's worthy of *at least* a minor version number update, not a bugfix.

  • Same issue on 4.1.5. And I can't build against 4.1.7 because of all the regressions with the type system.

    I am using 4.1.2 because I am just trying to build my old code here! And I think the problem comes from one of the device updates that was downloaded by the SDK manager, not the SDK itself.

  • 4.1.2 is old, I don't think anyone will try it on old SDK. Try it on the latest 4.1.7 or maybe 4.1.5