Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10335

IOUtils.getDecodingReader(Class<?>, String) is broken with modules

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1, 10.0 (main)
    • None
    • None
    • New

    Description

      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.

      Attachments

        1. LUCENE-10335.patch
          3 kB
          Dawid Weiss
        2. LUCENE-10335-1.patch
          21 kB
          Dawid Weiss
        3. Screenshot from 2021-12-25 18-04-55.png
          22 kB
          Tomoko Uchida

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 18h 40m
                  18h 40m