# Updated kafka-avro-serialize lib to 7.4.0 don't pick up custom KafkaAvroDeserializer

**URL:** <https://forum.confluent.io/t/updated-kafka-avro-serialize-lib-to-7-4-0-dont-pick-up-custom-kafkaavrodeserializer/7833>\
**Category:** Clients\
**Created:** [10 May 2023 13:55 UTC](https://forum.confluent.io/t/updated-kafka-avro-serialize-lib-to-7-4-0-dont-pick-up-custom-kafkaavrodeserializer/7833 "2023-05-10T13:55:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boban](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@boban](https://forum.confluent.io/u/boban)\
**Post date:** [10 May 2023 13:55 UTC](https://forum.confluent.io/t/updated-kafka-avro-serialize-lib-to-7-4-0-dont-pick-up-custom-kafkaavrodeserializer/7833/1 "2023-05-10T13:55:08Z")

</div>

Hey community,

for mocking the avro schema registry we’ve override the KafkaAvroDeserializer, see code below

```auto
public class CustomerLocalKafkaAvroDeserializer extends KafkaAvroDeserializer {

    @Override
    public Object deserialize(String topic, byte[] bytes) {
        this.schemaRegistry = getMockClient(CustomerData.SCHEMA$);
        return super.deserialize(topic, bytes);
    }

    private static SchemaRegistryClient getMockClient(final Schema schema) {
        return new MockSchemaRegistryClient() {
            @Override
            public ParsedSchema getSchemaBySubjectAndId(String subject, int id) {
                return new AvroSchema(schema);
            }
        };
    }
}

```

This worked like charm before the version 7.4.0 . After the update of the kafka-avro-serialize lib to 7.4.0 our custom deserializer is no more used, a default KafkaAvroDeserializer is instantiated instead. We are configuring the deserializer setting the value-deserializer property. Has someone figured the same issue?

Best  
Boban
