This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push: new 01edad75 [CODEC-324] BeiderMorse engine doesn't work with JPMS enabled 01edad75 is described below commit 01edad7586be038a68b7890044420bc6ce4fcfc9 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Dec 28 07:28:52 2024 -0500 [CODEC-324] BeiderMorse engine doesn't work with JPMS enabled Javadoc --- src/main/java/org/apache/commons/codec/Resources.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/codec/Resources.java b/src/main/java/org/apache/commons/codec/Resources.java index 944741ab..c506758a 100644 --- a/src/main/java/org/apache/commons/codec/Resources.java +++ b/src/main/java/org/apache/commons/codec/Resources.java @@ -27,12 +27,15 @@ import java.io.InputStream; public class Resources { /** - * Opens the given named resource from the given class. + * Gets a read-only stream on the contents of the resource specified by resName. The mapping between the resource name and the stream is managed by this + * class's class loader. * * @param name The resource name. * @return An input stream. + * @see ClassLoader#getResourceAsStream(String) */ public static InputStream getInputStream(final String name) { + // Use java.lang.Class.getResourceAsStream(String) to make JPMS happy final InputStream inputStream = Resources.class.getResourceAsStream(name); if (inputStream == null) { throw new IllegalArgumentException("Unable to resolve required resource: " + name);