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:28:00 UTC

[jira] [Resolved] (CAMEL-15598) camel-kafka - Remove old reflection code setting partitioner class config

     [ https://issues.apache.org/jira/browse/CAMEL-15598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15598.
---------------------------------
    Resolution: Fixed

> 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
>          Components: camel-kafka
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             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)