chia7712 commented on a change in pull request #8605: URL: https://github.com/apache/kafka/pull/8605#discussion_r419105803
########## File path: clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java ########## @@ -310,21 +310,31 @@ public KafkaProducer(Properties properties) { * be called in the producer when the serializer is passed in directly. */ public KafkaProducer(Properties properties, Serializer<K> keySerializer, Serializer<V> valueSerializer) { - this(propsToMap(properties), keySerializer, valueSerializer, null, null, null, + this(new ProducerConfig(ProducerConfig.addSerializerToConfig(properties, keySerializer, valueSerializer)), keySerializer, + valueSerializer, null, null, null, Time.SYSTEM); } // visible for testing - @SuppressWarnings("unchecked") KafkaProducer(Map<String, Object> configs, Review comment: this constructor is used by KafkaProducerTest only. I keep this method to minimize this PR ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org