SIMAlliance Interoperable Loader error!
844371May 24 2011 — edited May 24 2011I use the Shareable Interface implement the clientApplet to access a serverApplet's data .
and the Shareable method difine is : public byte methods();then i use the SIMAlliance Interoperable Loader to convert a .LDR file,it's OK.
but if i change the Shareable method :public byte []methods(byte[] buffer); and in clientApplet my code is :
ShareableInterface si = (ShareableInterface) JCSystem.getAppletShareableInterfaceObject(server_aid,(byte)0);
if(si == null)
ISOException.throwIt((short)0x6992);
*//get the apdu buffer*
byte[] buf = APDU.getCurrentAPDUBuffer();
si.methods(buf);
*//this method is OK*
*//si.methods();*
when the SIMAlliance Interoperable Loader compiling java files has 2 errors:
E:\javacard\JCOP3.1\workspace\ClientApplet\src\ClientPkg\ClientApp.java:102: cannot resolve symbol
symbol : method getCurrentAPDUBuffer ()
location: class javacard.framework.APDU
byte[] buf = APDU.getCurrentAPDUBuffer();
^
E:\javacard\JCOP3.1\workspace\ClientApplet\src\ClientPkg\ClientApp.java:103: methods() in Server.ShareableInterface cannot be applied to (byte[])
si.methods(buf);
^
2 errors
who know why the SIMAlliance Interoperable Loader why cannot resolve the getCurrentAPDUBuffer() interface??
Edited by: 841368 on 2011-5-24 上午12:13