Hey guys,
i had a problem that my initialized Variables where "null", and according
to this commentary in the source
// do not modify, write code in initVars and initialize class
> members
> // there, the constructor might be invoked too late due to race
> // conditions that might occur
>
i should use the initVars method, which i did but i got null for the
values, now after an hour of testing different approaches like
beforeShow/postShow/googleing without a success i decided to put t in the
constructor and it works as i wanted it to.
So did i get the sentence wrong and should have used the constructor
instead of initVars?
but what about the javadoc right on the bottom of the constructor?
/**
> * this method should be used to initialize variables instead of the
> * constructor/class scope to avoid race conditions
> */
>
im hella confused now
Regards
--
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/a9ab1ac5-9ade-450a-90d6-8a17a700f7c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.