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.

Parents
  • 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.

Comment
  • 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.

Children
No Data