{ "id": "175592", "key": "TIMOB-28161", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2020-10-03T05:16:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "build", "module", "regression" ], "versions": [ { "id": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-23T16:38:14.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" } ], "description": "*Steps to reproduce:*\r\n# Download the [ti.map|https://github.com/appcelerator-modules/ti.map] module.\r\n# CD to folder: {{./ti.map/android}}\r\n# Do an {{appc ti sdk select 9.1.0}} or higher Titanium version.\r\n# Build via: {{appc run -p android --build-only}}\r\n# Set up an app with Titanium 9.0.3.GA and built \"ti.map\" module.\r\n# Build and run on Android.\r\n# Notice the app crashes on startup with a linker error.\r\n\r\n*Cause:*\r\nIf a module's Java method is assigned both a {{Kroll.method}} annotation and {{Kroll.getProperty}}/{{Kroll.setProperty}} annotation, then the code generation will inject a C++ {{logDeprecation()}} function whose signature has changed as of 9.1.0 (we've added a 3rd argument).\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11049/files\r\n\r\n*Work-Around:*\r\nIf you are using both {{Kroll.getProperty}} and {{Kroll.method}} annotations on the same Java method, then remove the {{Kroll.method}} since support for this is deprecated. You must also do the same for setters.\r\n{code:java}\r\n@Kroll.getProperty\r\n@Kroll.method // <- Remove this annotation\r\npublic String getName() {\r\n\treturn \"\";\r\n}\r\n\r\n@Kroll.setProperty\r\n@Kroll.method // <- Remove this annotation\r\npublic void setName(String value) {\r\n\tmName = value;\r\n}\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Modules built with 9.1.0 and using deprecated getter/setter property methods will crash on 9.0.x apps", "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, "closedSprints": [ { "id": 1210, "state": "closed", "name": "2020 Sprint 23", "startDate": "2020-11-09T17:49:00.000Z", "endDate": "2020-11-20T17:49:00.000Z", "completeDate": "2020-11-20T17:46:00.641Z", "originBoardId": 114 }, { "id": 1211, "state": "closed", "name": "2020 Sprint 24", "startDate": "2020-11-23T18:12:00.000Z", "endDate": "2020-12-07T18:12:00.000Z", "completeDate": "2020-12-04T22:07:24.313Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457492", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12259", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-10T06:32:22.000+0000", "updated": "2020-11-10T06:32:22.000+0000" }, { "id": "457685", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and backport PR merged to 98_3_X for 9.3.0 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-11-23T16:38:14.000+0000", "updated": "2020-11-23T16:38:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }