M
Marcel Malitz
Hi all.
Short and simple code with a strange mistake in it or not. I hope you
can help me.
I am writing something in J2ME. It?s a canvas class which will be
used in a midlet.
At the end of this message you can see the error message.
There is something with the keyReleased methode. Without the methode
it?s running fine.
I know you will only see a huhu in console and not in display, but it
should run without an error.
Thanks for your help.
Regards,
Marcel
public class DigiPairCanvas extends Canvas {
private Graphics graphics;
public DigiPairCanvas(Display display) {
}
public void keyReleased(int keyCode) {
if (keyCode == KEY_NUM0) System.out.println("huhu");
}
protected void paint(Graphics graphics) {
}
}
Error message:
Execution completed successfully
74842 bytecodes executed
8 thread switches
370 classes in the system (including system classes)
687 dynamic objects allocated (30360 bytes)
5 garbage collections (15460 bytes collected)
Total heap size 524288 bytes (currently 505292 bytes free)
Error verifying method a keyReleased(I)V
Approximate bytecode offset 3: Inconsistent or missing stackmap at
target
ALERT: Error verifying class a
Short and simple code with a strange mistake in it or not. I hope you
can help me.
I am writing something in J2ME. It?s a canvas class which will be
used in a midlet.
At the end of this message you can see the error message.
There is something with the keyReleased methode. Without the methode
it?s running fine.
I know you will only see a huhu in console and not in display, but it
should run without an error.
Thanks for your help.
Regards,
Marcel
public class DigiPairCanvas extends Canvas {
private Graphics graphics;
public DigiPairCanvas(Display display) {
}
public void keyReleased(int keyCode) {
if (keyCode == KEY_NUM0) System.out.println("huhu");
}
protected void paint(Graphics graphics) {
}
}
Error message:
Execution completed successfully
74842 bytecodes executed
8 thread switches
370 classes in the system (including system classes)
687 dynamic objects allocated (30360 bytes)
5 garbage collections (15460 bytes collected)
Total heap size 524288 bytes (currently 505292 bytes free)
Error verifying method a keyReleased(I)V
Approximate bytecode offset 3: Inconsistent or missing stackmap at
target
ALERT: Error verifying class a