The actual static field name is added by javac, and the current version (without adding _ENUM_) works with all of our tools, as far as I know. Making the change you suggest would break everything.
The question is, why is your local toolchain generating these static fields with a different naming convention than our toolchain does? How was the .class file in question produced? On Fri, Sep 1, 2017 at 2:07 PM, Dave Dyer <[email protected]> wrote: > > 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 > <https://groups.google.com/d/msgid/codenameone-discussions/050147d5-d79f-4bb6-898d-c5a670c6b4a6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- 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/CAGOYrKWjQkYG%3DZ7aamxfne2M2-KGdURqdGdaOyL27ziKsvA7tQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
