Closed codefromthecrypt closed 9 years ago
fyi @kristofa @spencergibb @eamonnmcmanus
weird.. all the comments got stripped.. anyway @andrewcox lemme know if you've anything needed before merge.
any timeframe on this? I'd love to take out my build hack https://github.com/openzipkin/zipkin-java/blob/master/swift-codec/pom.xml
hate to nag, but is this project on pause?
Auto-Value writes immutable value types based on a user defined abstract class. It also supports generating factories, based on a user-defined interface. The following change adjusts swift codec to work both reflectively and via ASM.
Here's an example type that works following this change:
The notable change for ASM is that generated codecs are now placed in the same package as the value type, and defined in the same classloader. Also, this makes sure we use the correct injection method (ex. from the implementing class as opposed to the interface).
Tests pass and I've also verified with zipkin.
Closes #273