You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2022/10/31 00:53:15 UTC
[logging-log4j2] 07/13: Note more exception possibilities
This is an automated email from the ASF dual-hosted git repository.
mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit a6c877192f636dd16cdec8ad058a8941e6c462a9
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sun Oct 30 18:03:28 2022 -0500
Note more exception possibilities
Signed-off-by: Matt Sicker <ma...@apache.org>
---
log4j-api/src/main/java/org/apache/logging/log4j/util3/LoaderUtil.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util3/LoaderUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util3/LoaderUtil.java
index bfaace4f88..f84707b83b 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util3/LoaderUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util3/LoaderUtil.java
@@ -223,6 +223,7 @@ public final class LoaderUtil {
* @param className The class name.
* @return the Class for the given name.
* @throws ClassNotFoundException if the specified class name could not be found
+ * @throws LinkageError if the linkage fails
* @since 2.1
*/
public static Class<?> loadClass(final String className) throws ClassNotFoundException {
@@ -267,6 +268,7 @@ public final class LoaderUtil {
* @param <T> The class's type.
* @return new instance of the class.
* @throws ClassNotFoundException if the class isn't available to the usual ClassLoaders
+ * @throws LinkageError if the linkage fails
* @throws IllegalAccessException if the class can't be instantiated through a public constructor
* @throws InstantiationException if there was an exception whilst instantiating the class
* @throws InvocationTargetException if there was an exception whilst constructing the class
@@ -286,6 +288,7 @@ public final class LoaderUtil {
* @param <T> The type of the class to check.
* @return new instance of the class cast to {@code T}
* @throws ClassNotFoundException if the class isn't available to the usual ClassLoaders
+ * @throws LinkageError if the linkage fails
* @throws IllegalAccessException if the class can't be instantiated through a public constructor
* @throws InstantiationException if there was an exception whilst instantiating the class
* @throws InvocationTargetException if there was an exception whilst constructing the class