The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

A little doubt of StringDef

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 83
Joined: Wed Nov 04, 2015 7:23 am
Points :626
Contact:

A little doubt of StringDef

Post by BirdKing » Thu Dec 06, 2018 6:22 am

In javacard_spec-3_1_0, Annotation is something new. The usage of example that is " For example: @StringDef(name = "S2", reference = "com.sun.jcclassic.samples.stringlib.LibStrings.Hello") " is explained. I doubt how to find the reference object based on this string?

happy123654
Posts: 35
Joined: Wed Jun 20, 2018 4:06 am
Points :216
Contact:

Re: A little doubt of StringDef

Post by happy123654 » Thu Dec 06, 2018 11:54 pm

Ref object will be found in the class: com.sun.jcclassic.samples.stringlib.LibStrings.
This class had defined the variable "Hello" and this variable "Hello" is string.

BirdKing
Posts: 83
Joined: Wed Nov 04, 2015 7:23 am
Points :626
Contact:

Re: A little doubt of StringDef

Post by BirdKing » Mon Dec 10, 2018 12:29 am

So the string of "com.sun.jcclassic.samples.stringlib.LibStrings.Hello" indicates a reference...

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 6 guests

JavaCard OS : Disclaimer