Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SIMAlliance Interoperable Loader error!

844371May 24 2011 — edited May 24 2011
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2011
Added on May 24 2011
0 comments
191 views