Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26556] TiAPI: Modify SDK JS files to not use deprecated property get/set methods

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-11-15T14:44:01.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.0.0
Componentsn/a
Labelsandroid, ios
ReporterJoshua Quick
AssigneeJoshua Quick
Created2018-11-14T03:41:30.000+0000
Updated2018-11-26T15:02:53.000+0000

Description

As of Titanium 8.0.0, Java property get/set methods are deprecated. Calling a property getter or setter method still works, but will log warnings like the below.
Automatic getter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please access the property in standard JS style...
Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please access the property in standard JS style...
The Titanium SDK's core JavaScript files need to be updated to not use these deprecated methods so that warning do not get logged.

Comments

  1. Joshua Quick 2018-11-14

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/10464
  2. Joshua Quick 2018-11-14

    Note that our "kitchensink-v2" project needs to be updated as well. It calls setText() in several places, which logs warnings.
  3. Samir Mohammed 2018-11-26

    *Closing ticket* Verified improvement in SDK version 8.0.0.v20181121114345 no longer get a log warning when creating and building a default titanium application on iOS and Android.

JSON Source