Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User badgunnokia's Avatar
    Join Date
    Apr 2004
    Posts
    49
    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 doctordwarf's Avatar
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved