Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5136] Android: "instanceof check" fails

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-05-02T22:03:50.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
Componentsn/a
Labelsandroid, instanceof
ReporterThomas Huelbert
AssigneeIngo Muschenetz
Created2011-08-26T16:16:45.000+0000
Updated2017-05-02T22:03:50.000+0000

Description

1.see it in KS, when the app is first launched (adb logcat) 2. the failure line is Ti.API.info("instanceof check, should be false => " + (Ti.UI.createView() instanceof Ti.UI.createWindow()));

Comments

  1. b790676 2011-12-30

    Just ran into this on 1.8.0.1. Why are these instanceof() checks still there if they [no longer/don't] work?
  2. Mark Henderson 2012-05-21

    I have a Date object and when I do: if (MyObj instance of Date == false) {} the answer is always false when it is a date.
  3. Mark Henderson 2012-12-13

    This just got me again in another app.. Took me 2 days to find it as 3.0 doesn't seem to report when you throw an error! Why isn't this supported in Android it's a standard part of JS, and works great on iOS.. :(
  4. Thomas Huelbert 2012-12-13

    bump for scheduling
  5. Deepti Pandey 2014-07-03

    I am unable to reproduce the above issue using KitchenSink from master branch with following environment: Mac :10.9.3 Appcelerator Studio, build: 3.3.0.201406271159 SDK :3.3.0.v20140702175712 acs-1.0.15 alloy@1.4.0-rc3 npm-1.3.2 titanium@3.3.0-rc4 titanium-code-processor-1.1.1

JSON Source