{ "id": "172605", "key": "TIMOB-26553", "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": "2018-11-13T15:30:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56992", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172593", "key": "TIMOB-26545", "fields": { "summary": "Android: Using global L() method for localization does not work if second argument is not supplied", "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": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-13T17:58:26.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": "Our Android runtime has no means of passing along the difference between {{null}} and {{undefined}} when passing arguments to Java. We do have a {{KrollRuntime.UNDEFINED}} object that was intended to be used as the placeholder for {{undefined}} in Java, but it's only really used on the C++ side to wipe out some properties for the APIModule.\r\n\r\nSpecifically, we do have code for translating that object into {{undefined}} when converting from Java to JS, but when we receive {{null}} or {{undefined}} and try to convert to a Java Object in {{TypeConverter.cpp}} we translate that into a C++ {{NULL}}, which then becomes a Java {{null}}.\r\n\r\nTypically this hasn't mattered that much, but the distinction can be useful for determining if a method's optional arguments were explicitly passed a {{null}} versus not being specified at all (or explicitly passed {{undefined}}).", "attachment": [], "flagged": false, "summary": "Android: Java code has no means of distinguishing between undefined and null coming from JavaScript", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }