×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    49

    what's mean of the error?

    i have a class implements from commandListener:

    class MyListener implements CommandListener
    {
    private MIDlet midlet = null;
    MyListener(MIDlet mid)
    {
    midlet = mid;
    }

    public void commandAction(Command com, Displayable dis)
    {
    /*
    if(dis == Display.getDisplay(midlet).getCurrent())
    {

    }
    */
    }
    }

    when i remark :/*
    if(dis == Display.getDisplay(midlet).getCurrent())
    {

    }
    */
    my app run successfully, otherwise , the emulator report the error like below:

    [Error] Nokia 7210 MIDP SDK v1.0: Error verifying method com/badgun/game/MyListener commandAction(Ljavax/microedition/lcdui/Command;Ljavax/microedition/lcdui/DisplayableV
    [Info] Nokia 7210 MIDP SDK v1.0: Error verifying class com/badgun/game/MyListener
    [Error] Nokia 7210 MIDP SDK v1.0: Approximate bytecode offset 11: Inconsistent or missing stackmap at target

    best regards
    badgun

  2. #2
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    Are you sure that you always preverify your MIDlet?

    It looks like if you forget to preverify, when you remove comment...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •