[
https://issues.apache.org/jira/browse/LUCENE-10335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467874#comment-17467874
]
ASF subversion and git services commented on LUCENE-10335:
----------------------------------------------------------
Commit cc342ea7407c729a743123d8f7957aff6c6f9792 in lucene's branch
refs/heads/main from Uwe Schindler
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=cc342ea ]
LUCENE-10335: Deprecate helper methods for resource loading in IOUtils and
StopwordAnalyzerBase that are not compatible with module system; add utility
method IOUtils#requireResourceNonNull(T) and add ModuleResourceLoader as
complement to ClasspathResourceLoader
Co-authored-by: Tomoko Uchida <[email protected]>
> IOUtils.getDecodingReader(Class<?>, String) is broken with modules
> ------------------------------------------------------------------
>
> Key: LUCENE-10335
> URL: https://issues.apache.org/jira/browse/LUCENE-10335
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Dawid Weiss
> Priority: Major
> Attachments: LUCENE-10335-1.patch, LUCENE-10335.patch, Screenshot
> from 2021-12-25 18-04-55.png
>
> Time Spent: 17h 20m
> Remaining Estimate: 0h
>
> This method calls clazz.getResourceAsStream() but in a modular application
> the method won't see any of the resources in clazz's module, causing an NPE.
> We should deprecate or even remove this method entirely, leaving only
> getDecodingReader(InputStream) and opening the resource on the caller's side.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]