The team at Google recently held an internal hackathon, and my hack involved modifying how our ByteBuddy DoFnInvokers work. My hack didn't end up going anywhere, but I learned a lot about how our code generation works. It turns out we have no documentation or design docs about our code generation, so I wrote up what I learned,
Please take a look, and let me know if I got anything wrong, or if you are looking for more detail s.apache.org/beam-bytebuddy-dofninvoker John