I see this in the values method call so I'm not sure what you are talking 
about. This is initialized lazily. 

This is the code I'm seeing for a different enum:
JAVA_OBJECT __VALUE_OF_com_codename1_charts_compat_Paint_Style(
CODENAME_ONE_THREAD_STATE, JAVA_OBJECT value) {
        JAVA_ARRAY values = (JAVA_ARRAY)
get_static_com_codename1_charts_compat_Paint_Style__VALUES(threadStateData);
    JAVA_ARRAY_OBJECT* data = (JAVA_ARRAY_OBJECT*)values->data;
    int len = values->length;
    for (int i=0; i<len; i++) {
        JAVA_OBJECT name = 
get_field_com_codename1_charts_compat_Paint_Style_name(data[i]);
        if (name != JAVA_NULL && 
java_lang_String_equals___java_lang_Object_R_boolean(threadStateData, name, 
value)) { return data[i];}
    }
    return JAVA_NULL;
}




It might need synchronization.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/78e2d9f6-3048-48b0-ba6c-c33063052835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to