Page 1 of 1

A little doubt of StringDef

Posted: Thu Dec 06, 2018 6:22 am
by BirdKing
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?

Re: A little doubt of StringDef

Posted: Thu Dec 06, 2018 11:54 pm
by happy123654
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.

Re: A little doubt of StringDef

Posted: Mon Dec 10, 2018 12:29 am
by BirdKing
So the string of "com.sun.jcclassic.samples.stringlib.LibStrings.Hello" indicates a reference...