From e02a8cd61d9aaadf3673a8f7b2cb1fdff97fd760 Mon Sep 17 00:00:00 2001 From: Federico Valeri Date: Fri, 3 Feb 2023 12:22:51 +0100 Subject: [PATCH 1/5] Minor: Add JmxTool note to 3.5.0 notable changes Signed-off-by: Federico Valeri --- core/src/main/scala/kafka/tools/JmxTool.scala | 30 ++++++++++++++++ docs/upgrade.html | 34 +++++++++++-------- 2 files changed, 50 insertions(+), 14 deletions(-) create mode 100644 core/src/main/scala/kafka/tools/JmxTool.scala diff --git a/core/src/main/scala/kafka/tools/JmxTool.scala b/core/src/main/scala/kafka/tools/JmxTool.scala new file mode 100644 index 0000000000000..8fc05306c8085 --- /dev/null +++ b/core/src/main/scala/kafka/tools/JmxTool.scala @@ -0,0 +1,30 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package kafka.tools + +@deprecated(since = "3.5") +object JmxTool { + def main(args: Array[String]): Unit = { + println("WARNING: The 'kafka.tools' package is deprecated and will change to 'org.apache.kafka.tools' in the next major release.") + val toolClass = Class.forName("org.apache.kafka.tools.JmxTool") + val toolMethod = toolClass.getDeclaredMethod("main", classOf[Array[String]]) + toolMethod.invoke(null, args) + } +} diff --git a/docs/upgrade.html b/docs/upgrade.html index 4d979a026123c..15ddca5207817 100644 --- a/docs/upgrade.html +++ b/docs/upgrade.html @@ -19,20 +19,26 @@