My applet can not throw exception 0x8080. It seemed that it couldn't run to this line at all.
.ISOException.throwIt((short) 0x8080);
Kindly help please. What's wrong?
APDU:
Code:
Code: Select all
package test002;
import javacard.framework.*;
public class test extends Applet
{
public static void install(byte[] bArray, short bOffset, byte bLength)
{
new test().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
}
public void process(APDU apdu)
{
if (selectingApplet())
{
return;
}
byte[] buf = apdu.getBuffer();
switch (buf[ISO7816.OFFSET_INS])
{
default:
ISOException.throwIt((short) 0x8080);
}
}
}