You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/09/30 11:23:00 UTC
[jira] [Created] (CAMEL-15598) camel-kafka - Remove old reflection
code setting partitioner class config
Claus Ibsen created CAMEL-15598:
-----------------------------------
Summary: camel-kafka - Remove old reflection code setting partitioner class config
Key: CAMEL-15598
URL: https://issues.apache.org/jira/browse/CAMEL-15598
Project: Camel
Issue Type: Improvement
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 3.6.0
There is some old cruft code at
try {
// doesn't exist in old version of Kafka client so detect
// and only call the method if
// the field/config actually exists
Field f = ProducerConfig.class.getDeclaredField("PARTITIONER_CLASS_CONFIG");
if (f != null) {
loadParitionerClass(resolver, props);
}
} catch (NoSuchFieldException e) {
// ignore
} catch (SecurityException e) {
// ignore
}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)