[TIMOB-2642] Android : Kroll get method for properties does not work correctly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M02 |
Components | Android |
Labels | android, defect, kroll, release-1.6.0 |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:25:38.000+0000 |
Updated | 2011-04-17T01:59:41.000+0000 |
Description
Kroll get method returns undefined due to the "get" name check in KrollBindingUtils.java : createAccessorMethod never actually being passed when a get method is invoked. The name that is checked for either "get" or "set" is actually the name of the property without either of the prefixed modifiers.
The "get" check always fails so the execution passes to the "set" block and so set calls work correctly. When a get call is made, a null value is returned because the set logic is executed but no argument is passed in for a new value like a real set call would contain.
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T03:25:38.000+0000 | 668 |