[Java] Ensure bindings statics run before enums call native code