1 Reply Latest reply on Jan 11, 2008 7:33 AM by Gaurav J

    BUG - Switch statement & compiler

    BigBadBobPardoe Level 1
      I am overriding AccordionHeader. In the set Data method I have a switch statement. I dont think the location of the statement is relevant, but included for completeness. (MenuGroup is my own class and not relevant)

      If you have the following code Flex 3 \ FB 3 (both beta 3)

      override public function set data(value:Object):void
      {
      var menuGroup:MenuGroup = value as MenuGroup;

      // examine the groupType to determine if we need \ want to change the style setting
      // on this particular header

      switch(menuGroup.groupType)
      {

      }

      super.data = value;

      }

      The compiler will fail with an 'An internal build error has occurred' error.

      Put in a default case statement such as

      case default:
      break;
      and all is well.

      regards BOb