{ "id": "164455", "key": "AC-4601", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-11-21T20:16:58.000+0000", "created": "2016-11-09T05:44:10.000+0000", "labels": [ "android", "enum", "hyperloop", "undefined" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-21T20:16:58.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": "15000", "name": "Hyperloop" } ], "description": "I'm trying to access a Java enum. If I execute the code below my app crashes.\r\n*Techniques* is just a simple enum provided with an android lib that I'm trying to use.\r\n\r\n{code:java}\r\nTi.API.error(Techniques.values()[0].getAnimator());\r\n{code}\r\n\r\nThis is the error\r\n\r\n{code:java}\r\nUncaught TypeError: Cannot read property 'getAnimator' of undefined\r\n{code}\r\n\r\nThis happens with any enum. The code above works normally on native code.\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Hyperloop Android - can't access enum values", "creator": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "subtasks": [], "reporter": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "environment": "SDK 6.0.0 Beta\r\nHyperloop 2.0.0", "comment": { "comments": [ { "id": "400722", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please provide a full example code, thx", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-10T16:54:07.000+0000", "updated": "2016-11-10T16:54:07.000+0000" }, { "id": "401581", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi, \r\nCould you please try this with Hyperloop 2.0.0 on 6.0.0 GA ? If you get same issue please send a test project and steps to reproduce.\r\n\r\nReagrds,\r\nAminul ", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-11-20T20:19:33.000+0000", "updated": "2016-11-20T20:19:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }