[TIMOB-4718] Android: CharacterData.substringData - If the sum of offset and count exceeds the length exception is thrown instead of returning entire string
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-05T14:33:19.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-30, Release 1.8.0 |
Components | Android |
Labels | n/a |
Reporter | Natalie Huynh |
Assignee | Bill Dawson |
Created | 2011-07-19T11:32:29.000+0000 |
Updated | 2011-11-05T14:33:19.000+0000 |
Description
Steps to Reproduce:
1. Run XML test case for drillbit
Actual Result:
CData fails when the sum of offset and count exceeds length
Expected Result:
Should return the entire string
From the trace (below) it looks like Harmony is non-compliant. Spec says if "If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned." So it looks like we'll have to take care of this for Harmony :( .
Pull req ready https://github.com/appcelerator/titanium_mobile/pull/297
reviewed and tested.
Tested with: version=1.8.0 timestamp=08/26/11 14:21 githash=0e2031e Android Emulator 2.1 and 3.2
Standardizing summary and labels.