{ "id": "175846", "key": "TIMOB-28262", "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": "2020-12-01T17:39:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "class", "hyperloop", "static" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-22T18:33:08.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nHyperloop's generated JS code for a Java subclass does not expose its Java super class' public static methods and static constants. Only the instance methods/fields are exposed to the subclass.\r\n\r\nThis is needed to avoid issues, such as with Google's \"SnackBar\" shown below.\r\nhttps://github.com/appcelerator/hyperloop-examples/commit/00f4c1d20747ee5adfacbf2d0cb26dba644c8a43\r\n\r\n*Note:*\r\nIf the subclass has a static method/field of the same name as it's super class, then the subclass' method/field should take priority. This is legal in Java and is known as \"shadowing\".\r\n\r\n*Work-Around:*\r\nYou must access the super class' static methods/fields directly from the super class itself.\r\n", "attachment": [], "flagged": false, "summary": "Android: Hyperloop does not expose super class' static methods/fields to subclass", "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": [], "maxResults": 0, "total": 0, "startAt": 0 } } }