{ "id": "61951", "key": "TIMOB-1319", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:51.000+0000", "created": "2011-04-15T02:49:15.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:51.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": "{html}

TableViewRowProxy.fireEvent assumes that its parent is a\nTableViewProxy, when it can also be a TableViewSectionProxy object.\nIf you fire an event from a row contained in a TableViewSection, it\nwill cause a ClassCastException to be raised and the app will die.\nThe following changes in my local repo fixed the problem:

\n

diff --git\na/android/modules/ui/src/ti/modules/titanium/ui/TableViewRowProxy.java\nb/android/modules/ui/src/ti/modules/titanium/ui/TableViewRowProxy.java
\nindex a415c32..f1842db 100644
\n---\na/android/modules/ui/src/ti/modules/titanium/ui/TableViewRowProxy.java\n+++\nb/android/modules/ui/src/ti/modules/titanium/ui/TableViewRowProxy.java\n@@ -87,8 +87,14 @@ public class TableViewRowProxy extends\nTiViewProxy

\n
\n@Override\npublic boolean fireEvent(String eventName, TiDict data) {\n    if (eventName.equals(\"click\")) {\n
\n
{html}", "attachment": [ { "id": "17968", "filename": "gdiff.txt", "author": { "name": "joelboehland", "key": "joelboehland", "displayName": "Joel Boehland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:15.000+0000", "size": 1154, "mimeType": "text/plain" } ], "flagged": false, "summary": " [PATCH] Class cast exception in TableViewRowProxy.java in fireEvent", "creator": { "name": "joelboehland", "key": "joelboehland", "displayName": "Joel Boehland", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joelboehland", "key": "joelboehland", "displayName": "Joel Boehland", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125324", "author": { "name": "joelboehland", "key": "joelboehland", "displayName": "Joel Boehland", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Apologies for the badly-formatted patch that I inlined in the\noriginal message. Please see the attached patch instead.

{html}", "updateAuthor": { "name": "joelboehland", "key": "joelboehland", "displayName": "Joel Boehland", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:16.000+0000", "updated": "2011-04-15T02:49:16.000+0000" }, { "id": "125325", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [c580ff0f0ed719c35f65a7db75236540b7d8b187])\ngo up the tree to find the row's TableView parent (sometimes the\nimmediate parent is a section) [#1319\nstate:resolved] \nhttp://github.com/appcelerator/titanium_mobile/commit/c580ff0f0ed71...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:17.000+0000", "updated": "2011-04-15T02:49:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }