Example:
record TokenAcquisitionResponse { boolean success = true; union{null, DeviceRegistrationResponse} deviceResponse = null; union{null, string} errorMessage; @javaAnnotation("java.lang.Deprecated") union{null, string} accessToken; } In my IDL. When I generate the object using maven builder plugin, it doesn’t put the @Deprecated annotation anywhere. Am I missing something. Oh this is Avro 1.7.6