{ "id": "103201", "key": "TIMOB-11410", "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": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "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-15T21:52:39.000+0000", "created": "2012-10-12T10:12:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "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": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-07T10:05:39.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": "This is a regression .It works fine with 2.1.3 GA.\r\n\r\nSteps to reproduce:\r\n1. Use the code below in app.js\r\n{code}\r\nvar win= Ti.UI.createWindow();\r\nvar test = require(\"com.arcaner.testModule2\");\r\n\t\ttest.evalJS(\"Ti.API.debug('Hello World'); 100+1\");\r\n\t\ttest.evalJSWithContext(\"Ti.API.debug('Hello from TiContext'); 1.1+100;\");\r\n\t\ttest.evalFileWithContext(\"test.js\");\r\n\t\t\r\nwin.open();\r\n{code}\r\n\r\n2. Add below modules to the tiapp.xml of the project \r\n \r\n ti.harness\r\n ti.omniture\r\n com.arcaner.testModule2\r\n \r\n\r\n3. Download the attached modules zip file, unzip it and add it to the project at root level.\r\n4. Run the project.\r\n\r\nExpected result:\r\nNo runtime error should be shown. \r\nThe console should show the following: \r\nD/TiAPI ( 738): Hello World \r\nD/Testmodule2Module( 738): (KrollRuntimeThread) [2199,5043] Result = 101 \r\nD/TiAPI ( 738): Hello from TiContext \r\nD/Testmodule2Module( 738): (KrollRuntimeThread) [8,5152] TiContext Result = 101.1 \r\nD/TiAPI ( 738): Hello world from a file \r\nD/Testmodule2Module( 738): (KrollRuntimeThread) [11,5163] TiContext File Result = 102\r\n\r\nActual reult:\r\nRuntime error is thrown. Error log attached with bug.", "attachment": [ { "id": "32557", "filename": "modules.zip", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-12T10:12:44.000+0000", "size": 127687, "mimeType": "application/zip" }, { "id": "32558", "filename": "TIMOB-7233.rtf", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-12T10:12:44.000+0000", "size": 2656, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: Runtime error is thrown for evalJS", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.0.0.v20121011174610\r\nTitanium Studio: 3.0.0.201210101947\r\nDevice : Android 2.2 LG-P970\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "223442", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3223", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T23:55:27.000+0000", "updated": "2012-10-13T23:55:27.000+0000" }, { "id": "223672", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "backport PR: https://github.com/appcelerator/titanium_mobile/pull/3239", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-15T21:42:11.000+0000", "updated": "2012-10-15T21:42:11.000+0000" }, { "id": "224904", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No error is thrown now.Environment used for verification -\r\nTitanium SDK: 3.1.0.v20121024131714\r\nTitanium SDK:3.0.0.v20121024144610\r\nTitanium  Studio:3.0.0.201210220122\r\n", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-25T09:40:42.000+0000", "updated": "2012-10-25T09:40:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }