0 Replies Latest reply on Sep 8, 2008 5:40 AM by cou cou

    How do I make if/else conditional statements?

    cou cou Newbie


      I am trying to make if conditional statement. (version: 3.8.1.GA)

      example: CtMethod mCommand = CtNewMethod.make("public void commandAction(Command c, Displayable s)" +
      "{ if (c == OUI) showMe(); }", clas);

      But the programme show:
      Error verifying method commandAction(Ljavax/microedition/lcdui/Command;Ljavax/microedition/lcdui/Displayable;)V
      Approximate bytecode offset 5: Inconsistent or missing stackmap at target

      Help me, thanks!