{ "id": "92728", "key": "TIMOB-9350", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-07T04:55:52.000+0000", "created": "2012-06-03T21:04:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "module_app_properties", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-07T04:55:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10225", "name": "Release", "description": "This component is used for issues related to releasing the product. Release notes, copying builds to the server, etc." } ], "description": "h3. Problem\r\n\r\nWhen calling Titanium.App.Properties.getDouble() on iOS for a value stored via Ti.App.Properties.setInt(), the exception (as shown in the screenshot) is thrown.\r\n\r\nh3. Steps to Reproduce\r\n\r\nRun the app.js file below:\r\n\r\n{noformat}\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\nwin.open();\r\n\r\nvar l = Titanium.UI.createLabel({\r\n text:'See Log for output',\r\n height:'auto',\r\n width:'auto'\r\n});\r\nwin.add(l);\r\n\r\nTitanium.App.Properties.setInt('Int',10);\r\n\r\nTitanium.API.info('Int: '+ Titanium.App.Properties.getDouble('Int'));\r\n\r\n{noformat}\r\n\r\nThe above code works fine on iOS.\r\n\r\n", "attachment": [ { "id": "28134", "filename": "Screen Shot 2012-06-03 at 8.41.11 PM.png", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-03T21:04:26.000+0000", "size": 170494, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Exception when Titanium.App.Properties.getDouble is called for a value stored as an Int", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 2.0.1.GA2\r\nPlatform OS: Android", "comment": { "comments": [ { "id": "214749", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120815194913\r\nStudio:2.1.1.201207271312\r\nDevices: Samsung galaxy tab(v 3.2), android emulator\r\n\r\nNo exception is thrown now for Titanium.App.Properties.getDouble call.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T02:34:48.000+0000", "updated": "2012-08-16T02:34:48.000+0000" }, { "id": "217960", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-07T04:55:15.000+0000", "updated": "2012-09-07T04:55:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }