[TIMOB-13213] Android: Adding label to TabGroup addTab method, No Exception is thrown
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | reprod |
Reporter | Paras Mishra |
Assignee | Unknown |
Created | 2013-03-26T07:14:33.000+0000 |
Updated | 2018-09-28T15:06:27.000+0000 |
Description
When a label is passed to a tab group's addTab method, Exception is expected but no exception is displayed.
This is not a regression.It exists on 3.0.2 GA as well.
Steps to reproduce:
1) Add the following to app.js and run the app.
var tabs = Ti.UI.createTabGroup();
tabs.addTab(Ti.UI.createLabel());
tabs.open();
Expected:
A classCastException should occur.
E/TiApplication(8640): (main) [5973,6039] Sending event: exception on thread: main msg:java.lang.ClassCastException: ti.modules.titanium.ui.LabelProxy; Titanium 1.8.1,2012/01/27 17:31,a24502a
E/TiApplication(8640): java.lang.ClassCastException: ti.modules.titanium.ui.LabelProxy
Actual:
No exception is occurred.
Issue still reproducible on Appcelerator-Studio:3.3.0.201406171619 Sdk:3.3.0.v20140620194913 acs:1.0.14 alloy:1.4.0-rc2 npm:1.3.2 titanium:3.3.0-rc2 titanium-code-processor:1.1.1 xcode:5.1.1 OS:Maverick(10.9.3) Device:Nexus5(v4.4.3)
I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131