{ "id": "162554", "key": "TIMOB-23769", "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": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-15T18:45:07.000+0000", "created": "2016-08-12T12:19:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "deprecated", "ios", "qe-5.5.0", "regression" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-09-16T21:08:48.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "attachment": [], "flagged": false, "summary": "iOS: Deprecated warnings are thrown in unrelated API's", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "393130", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, after some more research, I found the reason for the warnings. We reused certain proxies like {{Ti.UI.iPhone.TableViewCellSelectionStyle}} and {{Ti.UI.iPhone.ListViewCellSelectionStyle}} because they return the same values, so we had a class {{TiUIiPhoneTableViewCellSelectionStyleProxy}} that was used by both. Now we deprecated it, so only the warning for {{TableViewCellSelectionStyle}} was thrown.\r\n\r\nWhat we need to do is to create own classes to throw specific deprecated warnings, until we remove the classes in a later release (probably 7.0.0 or 8.0.0). I guess the same happens for {{SystemButton}} but will need to check that as well.\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/8226\r\nPR (5_5_X): https://github.com/appcelerator/titanium_mobile/pull/8227\r\n\r\nDemo:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar test1 = Ti.UI.iPhone.ListViewCellSelectionStyle.NONE;\r\nvar test2 = Ti.UI.iPhone.ListViewStyle.GROUPED;\r\nvar test3 = Ti.UI.iPhone.ListViewScrollPosition.NONE;\r\nvar test4 = Ti.UI.iPhone.ListViewSeparatorStyle.NONE;\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Expected behavior (before)*: Some of the logs show {{Ti.UI.iPhone.TableView}} instead of the actual proxy name.\r\n*Expected behavior (after)*: All logs show the correct deprecated warnings that are related to the namespace.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-15T09:52:03.000+0000", "updated": "2016-08-15T11:00:38.000+0000" }, { "id": "393562", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\nTested on:\r\n\r\n{noformat}\r\niPhone 6s plus (9.3.1)\r\niPhone 6 (10.0) beta 6\r\niPhone Simulator (10.0)\r\n
Mac OSX El Capitan 10.11.6\r\nStudio: 4.7.0.201607250649\r\n
Ti SDK: 5.4.0.v20160608165242\r\n
Appc NPM: 4.2.7\r\nAppc CLI: 5.5.0-5\r\nXcode 7.3.1/8 beta 6\r\nNode: v4.4.4\r\n{noformat}\r\n\r\n*Closing ticket*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-19T00:37:12.000+0000", "updated": "2016-08-19T00:37:12.000+0000" }, { "id": "396381", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I missed the 6_0_X backport: https://github.com/appcelerator/titanium_mobile/pull/8388", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-16T21:08:48.000+0000", "updated": "2016-09-16T21:08:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }