Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6970] Android: Add float[] type support in Kroll

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-02-10T00:04:45.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsAndroid
Labelsn/a
ReporterHieu Pham
AssigneeHieu Pham
Created2012-01-03T17:43:14.000+0000
Updated2012-02-10T00:04:45.000+0000

Description

We don't currently support float[] return values in @Kroll.methods (it needs to be added to ProxyBinding.fm)

Comments

  1. Hieu Pham 2012-01-04

    Testing steps: 1. Add this method to Ti2DMatrix.java:
       @Kroll.method
       public float[] floatValues(float val) 
       {
       	float[] result = new float[1];
       	result[0] = val;
       	return result;
       }
       
    2. scons 3. run simple titanium app with:
       var matrix1 = Ti.UI.create2DMatrix();
       var t = matrix1.floatValues(10);
       Ti.API.debug("t is " + t[0] + " .. should be 10");
       
    4. Look at log for result.
  2. Wilson Luu 2012-01-12

  3. Neeraj Gupta 2012-01-23

    Reopening and closing this issue to update label and Fix Version field.

JSON Source