GitHub user dolow opened a pull request: https://github.com/apache/avro/pull/134
AOT support For supporting compilers which do not allow JIT, such as iOS compilation, I removed lines where Reflection.Emit was used and refactored related methods. The part Reflection.Emit was used was making a constructor of given type. However it could be replaced with Activator.CreateInstance (it is OK for AOT) by using ObjectCreator.GetType method with the same arguments as GetConstructor methods. I hope this is acceptable for Avro. Thank you. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dolow/avro feature/aot_support Alternatively you can review and apply these changes as the patch at: https://github.com/apache/avro/pull/134.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #134 ---- commit aad24a7b1bbeb39105b8b3ee9578dbc792d8cfea Author: dolow <do_...@hotmail.com> Date: 2016-09-28T08:45:43Z replaced Reflection.Emit to simple instantiation for supporting AOT. commit 0cf2081569f3244ae535710d46ea41e15e57bbcc Author: dolow <do_...@hotmail.com> Date: 2016-09-28T11:10:17Z removed unused GetConstructor methods ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---