I thought -Dgwt.compiler.localWorkers=1 might help, but no, the order still changes.
1 of 1 people found this helpful
There's not currently a way to guarantee the ordering of fields in the emitted marshalling code. Can you create a JIRA for us? An alternative you have in the meantime is to use dynamic marshalling during development (depending on the Errai version you are using, dynamic marshalling should be active by default when running in GWT's DevMode).
You can activate it with the following system property: errai.marshalling.use_static_marshallers=false
This should at least free you from having to copy the ServerMarshallingFactoryImpl during fast development cycles. When compiling for production though we recommend to use static marshallers.
Done, see ERRAI-570.