Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6150] Android: Packaging - Rhino/v8 - Studio console logs "WARNING - Suspicious code" and fails to package

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-12-09T13:28:49.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8
ReporterEric Merriman
AssigneeOpie Cyrus
Created2011-11-10T17:04:50.000+0000
Updated2011-12-09T13:28:49.000+0000

Description

Description: While packaging some apps for testing, I got a strange error in the console during compile which prevents the build from completing [ERROR] /Users/eric/Documents/fromGit/titanium_mobile/demos/KitchenSink/build/android/bin/assets/Resources/examples/table_view_layout_2.js:13: WARNING - Suspicious code. The result of the 'getprop' operator is not being used. e.value; // search string as user types ^ 0 error(s), 1 warning(s) A quick check of the code in question shows: search.addEventListener('change', function(e) { e.value; // search string as user types }); Steps to reproduce: 1) Sync with master 2) Import KS into studio 3) Attempt to package for distribution on Android 4) Watch console log Result: No .apk produced, console warning Expected: No warning, .apk produced as expected

Comments

  1. Natalie Huynh 2011-12-09

    Tested with 1.8.0.1.v20111209011840 apk is generated but still seeing the warning of the suspicious code.
  2. Natalie Huynh 2011-12-09

    Marshall said that the fix is for the build error it can now compile, warning is because of code issue in KS

JSON Source