{ "id": "176095", "key": "TIMOB-28375", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-03-11T14:41:44.000+0000", "created": "2021-03-05T04:32:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "enum", "hyperloop" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-03-11T14:41:44.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "*Summary:*\r\nIf JDK 12 or higher is installed, Hyperloop fails to generate a working proxy for Java enum types which will cause a runtime error when used.\r\n\r\n*Steps to reproduce:*\r\n# Set up the system with JDK 12 or higher.\r\n# Build and run [hyperloop-examples|https://github.com/appcelerator/hyperloop-examples] on Android.\r\n# Tap on \"Blur\" in the list.\r\n# Notice the below exception occurs.\r\n\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [3565,4127] ti:/module.js:297\r\n[ERROR] TiExceptionHandler: \tthrow new Error('Requested module not found: ' + request); // TODO Set 'code' property to 'MODULE_NOT_FOUND' to match Node?\r\n[ERROR] TiExceptionHandler: ^\r\n[ERROR] TiExceptionHandler: Error: Requested module not found: ./java.lang.Enum\r\n[ERROR] TiExceptionHandler: at Module.require (ti:/module.js:297:8)\r\n[ERROR] TiExceptionHandler: at Module.global.Module.require (:5050:34)\r\n[ERROR] TiExceptionHandler: at require (ti:/module.js:550:15)\r\n[ERROR] TiExceptionHandler: at /hyperloop/android.graphics.Bitmap$Config.js:36:18\r\n{code}\r\n\r\n*Note:*\r\nIf the above error did not occur, then that means a valid Java class metabase file was generated by JDK 11 or older and hyperloop is re-using it. Search for the following line in the build log and delete the file it references.\r\n{code}\r\n[Hyperloop] Using system metabase cache file at \r\n{code}\r\n\r\n*How to change JDK version on Mac:*\r\nEntering the following at the command line will list all JDK versions installed on Mac...\r\n{code}\r\n/usr/libexec/java_home -V\r\n{code}\r\n\r\nYou can switch JDK versions used on Mac by entering the following.\r\n_(Make sure to replace below.)_\r\n{code}\r\nexport JAVA_HOME=$(/usr/libexec/java_home -v )\r\n{code}\r\n\r\n*Work-around:*\r\nUse JDK 11 instead.\r\n", "attachment": [], "flagged": false, "summary": "Android: Hyperloop fails to access enum types with JDK 12", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458339", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (hyperloop.next): https://github.com/appcelerator/hyperloop.next/pull/349", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-05T05:05:35.000+0000", "updated": "2021-03-05T05:05:35.000+0000" }, { "id": "458379", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12540", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-10T20:35:37.000+0000", "updated": "2021-03-10T20:35:37.000+0000" }, { "id": "458380", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-11T00:21:23.000+0000", "updated": "2021-03-11T00:21:23.000+0000" }, { "id": "458388", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged hyper loop update to master and 10_0_X for 10.0.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-11T14:41:40.000+0000", "updated": "2021-03-11T14:41:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }