Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13213

Android: Adding label to TabGroup addTab method, No Exception is thrown

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Android Version : 4.0.4
      SDK: 3.1.0.v20130325155928,
      CLI version : 3.0.25-alpha
      OS : MAC OSX 10.8.2

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pmishra Paras Mishra
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16011
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code