Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9165] Android: ti.cloud.js generates a warning from the closure-compiler when building for android.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-08-01T22:33:39.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelscore
ReporterStephen Feather
AssigneeIngo Muschenetz
Created2012-05-13T17:13:51.000+0000
Updated2017-03-14T17:58:41.000+0000

Description

Expectation

Tooling builds without errors or warnings

Actual Experience

Tooling supplied library builds with warning

Warning

[INFO] Compiling javascript: ti.cloud.js
[DEBUG] java -jar "/Users/sfeather/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2/android/lib/closure-compiler.jar" --js /development/test4/build/android/bin/assets/Resources/ti.cloud.js --js_output_file /development/test4/build/android/bin/assets/Resources/ti.cloud.js-compiled --jscomp_off=internetExplorerChecks
[WARN] /development/test4/build/android/bin/assets/Resources/ti.cloud.js:68: WARNING - If this if/for/while really shouldnt have a body, use {}
progress:b.progress})},onerror:function(a){var b={},d=this.responseText;try{var c=d;if(!c||0>=c.length)d=!1;else{for(var c=c.replace(/^\s\s*/,""),e=/\s/,g=c.length;e.test(c.charAt(--g)););d=c.slice(0,g+1)}d&&0<d.length&&(b=JSON.parse(d))}catch(h){b=h}b.message||(b.message=a.error);b.error=!0;b.statusText=this.statusText;b.status=this.status;b.meta&&(b.metaString=JSON.stringify(b.meta));f(b)},onload:function(){var a=JSON.parse(this.responseText);a&&a.meta&&(a.metaString=JSON.stringify(a.meta),c.acs.js.sdk.utils.storeSessionId(a.meta.session_id));
                                                                                                                 ^

0 error(s), 1 warning(s)

Comments

  1. Stephen Feather 2012-05-13

    For queueing purposes: Issue is non-critical. Issue does not prevent binary build Issue does not seem to affect binary performance. Issue however is distracting.
  2. Arthur Evans 2012-05-17

    Moved from TIDOC; this is a TIMOB tooling or Android error.
  3. Chris Barber 2013-08-01

    This seems to no longer be an issue since ti.cloud 2.1.0 (and newer) distributed js file is already Closure compiled.
  4. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source