This is the point where I found it necessary to add an ENUM to the code 
being generated

in ByteCodeClass.java

        if (isEnum) {
            b.append("JAVA_OBJECT 
__VALUE_OF_").append(clsName).append("(CODENAME_ONE_THREAD_STATE, 
JAVA_OBJECT value) {\n    ");
            b.append("    JAVA_ARRAY values = 
(JAVA_ARRAY)get_static_").append(clsName).append("_ENUM_VALUES(threadStateData);\n");
            b.append("    JAVA_ARRAY_OBJECT* data = 
(JAVA_ARRAY_OBJECT*)values->data;\n");

I haven't discovered where the name of the static enum values variable 
comes from.


-- 
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/050147d5-d79f-4bb6-898d-c5a670c6b4a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to