You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2023/05/16 08:39:44 UTC
[jmeter] branch master updated: fix: account for Provider ... is not a subtype errors in ClassFinder#loadServices
This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new 6d9716da91 fix: account for Provider ... is not a subtype errors in ClassFinder#loadServices
6d9716da91 is described below
commit 6d9716da91ea071d50dcea84443e0c1984de716f
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Tue May 16 11:39:30 2023 +0300
fix: account for Provider ... is not a subtype errors in ClassFinder#loadServices
---
.../src/main/java/org/apache/jorphan/reflect/ClassFinder.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/jorphan/src/main/java/org/apache/jorphan/reflect/ClassFinder.java b/src/jorphan/src/main/java/org/apache/jorphan/reflect/ClassFinder.java
index 22d08caed9..35babc7c5c 100644
--- a/src/jorphan/src/main/java/org/apache/jorphan/reflect/ClassFinder.java
+++ b/src/jorphan/src/main/java/org/apache/jorphan/reflect/ClassFinder.java
@@ -134,10 +134,13 @@ public final class ClassFinder {
);
} else if (message.endsWith(" could not be instantiated")) {
className = message.substring(
- service.getName().length() + ": ".length() + "Provider ".length(),
+ service.getName().length() + ": ".length(),
message.length() - " could not be instantiated".length()
);
}
+ if (className.startsWith("Provider ")) {
+ className = className.substring("Provider ".length());
+ }
}
exceptionHandler.handle(service, className, e);
}