Christmas is coming soon! To thank for the support from all our dear customers, Christmas promotional activity is going on in JavaCardOS online store. For more activities details, please check this post.

A little doubt of StringDef

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 54
Joined: Wed Nov 04, 2015 7:23 am
Points :404
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: 54
Joined: Wed Nov 04, 2015 7:23 am
Points :404
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: Baidu [Spider] and 1 guest

JavaCard OS : Disclaimer