chia7712 commented on PR #16020: URL: https://github.com/apache/kafka/pull/16020#issuecomment-2123020884
@brandboat the solution of my previous comment (https://github.com/apache/kafka/pull/15991#discussion_r1605853497) was to parse the passed string and then convert it to current version. For example: ```java private String convertDeprecatedClass(String className) { if (className.equals("kafka.tools.DefaultMessageFormatter")) { System.err.println("WARNING: kafka.tools.DefaultMessageFormatter is deprecated and will be removed in the next major release. " + "Please use org.apache.kafka.tools.consumer.DefaultMessageFormatter instead"); return DefaultMessageFormatter.class.getName(); } return className; } ``` The benefit of this approach is that we don't need to add removed class back. WDYT? -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org