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

V
Reply With Quote

