From abd36dfc94d862309db8810973f4a822dae227b2 Mon Sep 17 00:00:00 2001 From: hn <72974271+Hen1ng@users.noreply.github.com> Date: Thu, 1 Jul 2021 10:59:03 +0800 Subject: [PATCH] fix some method exception error (#7210) --- CHANGES.md | 1 + .../apm/agent/core/conf/SnifferConfigInitializer.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 589459b72..edfbaed89 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -24,6 +24,7 @@ Release Notes. * Correct `profile.duration` to `profile.max_duration` in the default `agent.config` file. * Fix the response time of gRPC. * Add `ShardingSphere-5.0.0-beta` plugin. +* Fix some method exception error. #### OAP-Backend diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java index 06b82c488..7eb1809a6 100644 --- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java +++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java @@ -134,7 +134,7 @@ public class SnifferConfigInitializer { } } - private static void overrideConfigByAgentOptions(String agentOptions) throws IllegalAccessException { + private static void overrideConfigByAgentOptions(String agentOptions) throws IllegalArgumentException { for (List terms : parseAgentOptions(agentOptions)) { if (terms.size() != 2) { throw new IllegalArgumentException("[" + terms + "] is not a key-value pair.");