{ "id": "103141", "key": "TIMOB-11389", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-19T17:21:05.000+0000", "created": "2012-10-11T18:15:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tableviewrow", "qe-and100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21921", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84496", "key": "TIMOB-7008", "fields": { "summary": "Android: tableViewRow - longpress event does not fire on TableViewRow", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-20T17:56:53.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": "Description:\r\nLongpress on tableViewRow gives a RunTime Error.\r\n\r\nThis is a regression, does not occur on 2.1.3\r\n\r\nSteps:\r\n1. Run the following code:\r\n{code}\r\nvar _window = Titanium.UI.createWindow({backgroundColor:'white'});\r\n\t\t\r\n\t\tvar row = Titanium.UI.createTableViewRow({\r\n\t\t\theight : 'auto'\r\n\t\t});\r\n\t\tvar view = Titanium.UI.createView({\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\twidth : '90%',\r\n\t\t\theight : '40'\r\n\t\t});\r\n\t\t\r\n\t\trow.add(view);\r\n\t\trow.addEventListener('longpress', TableViewRowLongPress);\r\n\r\n\t\tvar table = Titanium.UI.createTableView();\r\n\t\ttable.appendRow(row);\r\n\t\t_window.add(table);\r\n\r\n\t\tfunction TableViewRowLongPress(evt) {\r\n\t\t\talert('*TableViewRow longpress');\r\n\t\t}\r\n\r\n\t\t_window.open();\r\n{code}\r\n2. Long press on a red view\r\n\r\nExpected:\r\nShould get an alert \"*TableViewRow longpress\"\r\n\r\nActual:\r\nRunTime Error", "attachment": [ { "id": "32531", "filename": "device-2012-10-11-110613.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T18:15:27.000+0000", "size": 65468, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TableViewRow - Longpress on tableViewRow gives a RunTime Error", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121010184612\r\nDevice: Samsung Galaxy Nexus (4.1.1)", "comment": { "comments": [ { "id": "223211", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This works with the fix for [TIMOB-11320]. I'm going to mark this ticket as a duplicate.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T23:17:36.000+0000", "updated": "2012-10-11T23:17:36.000+0000" }, { "id": "223213", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "duplicate of [TIMOB-11320]", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T23:18:34.000+0000", "updated": "2012-10-11T23:18:34.000+0000" }, { "id": "224069", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue. The RunTime Error still appears after long press on red tableView row.\r\nTested on:\r\nTitanium Studio, build: 3.0.0.201210151149\r\nTitanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121\r\nDevice: Nexus 7 (4.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T21:38:41.000+0000", "updated": "2012-10-17T21:38:41.000+0000" }, { "id": "224107", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm seeing this failure now:\n\nThread [<9> KrollRuntimeThread] (Suspended (exception ClassCastException))\t\n\t\t\n\tTableViewProxy.fireEvent(String, Object) line: 143\t\n\tTableViewRowProxy(KrollProxy).fireEventToParent(String, Object) line: 648\t\n\tV8Object.nativeFireEvent(long, String, Object) line: not available [native method]\t\n\tV8Object.fireEvent(String, Object) line: 58\t\n\tTableViewRowProxy(KrollProxy).doFireEvent(String, Object) line: 694\t\n\tTableViewRowProxy(KrollProxy).handleMessage(Message) line: 918\t\n\tTableViewRowProxy(TiViewProxy).handleMessage(Message) line: 310\t\n\tTableViewRowProxy.handleMessage(Message) line: 175\t\n\tHandler.dispatchMessage(Message) line: 95\t\n\tLooper.loop() line: 130\t\n\tKrollRuntime$KrollRuntimeThread.run() line: 112\t\n", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T23:06:52.000+0000", "updated": "2012-10-17T23:06:52.000+0000" }, { "id": "224235", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request https://github.com/appcelerator/titanium_mobile/pull/3286\n\nIt looks as though some recent changes to event handling code caused this regression.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T18:12:42.000+0000", "updated": "2012-10-18T18:12:42.000+0000" }, { "id": "224427", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Master PR merged. Ready for 3_0_X cherry-pick PR.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-19T11:32:42.000+0000", "updated": "2012-10-19T11:32:42.000+0000" }, { "id": "224470", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created pull request https://github.com/appcelerator/titanium_mobile/pull/3300\nfor 3_0_X branch.", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T16:52:46.000+0000", "updated": "2012-10-19T16:52:46.000+0000" }, { "id": "224894", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No runtime error is thrown now.Verified with following environment on emulator and galaxy nexus 4.0.4.\r\nTitanium SDK: 3.1.0.v20121024131714\r\nTitanium SDK:3.0.0.v20121024144610\r\nTitanium  Studio:3.0.0.201210220122", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-25T06:56:44.000+0000", "updated": "2012-10-25T06:56:44.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }