{ "id": "169417", "key": "TIMOB-25069", "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": [], "resolution": null, "resolutiondate": null, "created": "2017-08-07T16:06:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "19878", "name": "Hyperloop 2.1.3", "archived": false, "released": true, "releaseDate": "2017-08-04" } ], "issuelinks": [ { "id": "55715", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "169162", "key": "TIMOB-25034", "fields": { "summary": "Hyperloop: Properties from object in NSArray are undefined", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-21T11:17:03.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Casting an object to change their prototype introduces an issue with the prototype chain, so that certain methods and properties are not available anymore.\r\n\r\n*Steps to reproduce the behavior*\r\n# Run the attached app which contains a minimal working example for this issue\r\n\r\n*Actual behavior*\r\nThe log shows the following output:\r\n{code}\r\n[INFO] CBService.UUID: undefined\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: Test1\r\n[INFO] CBService.isPrimary: undefined\r\n[INFO] CBService.UUID: Test2\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: Test2\r\n[INFO] CBService.isPrimary: undefined\r\n[INFO] CBAttribute.UUID: \r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: null\r\n[INFO] CBService.isPrimary: undefined\r\n{code}\r\n\r\n*Expected behavior*\r\nThe following correct debug output should be printed:\r\n{code}\r\n[INFO] CBService.UUID: Test1\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: Test1\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBService.UUID: Test2\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: Test2\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: Test3\r\n[INFO] CBService.isPrimary: 0\r\n[INFO] CBAttribute.UUID: Test3\r\n[INFO] CBService.isPrimary: 0\r\n{code}", "attachment": [ { "id": "62993", "filename": "hl-cast-issue-timob25069.zip", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-07T17:06:49.000+0000", "size": 7833049, "mimeType": "application/zip" } ], "flagged": false, "summary": "Hyperloop: iOS - Inheritance issues when casting objects", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "appc-cli 6.2.2\r\nTiSDK 6.1.2.GA\r\nHyperloop 2.1.3\r\nNode 8.1.4", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }