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

StringHelper needs to catch NoClassDefFoundError

Details

    • Patch Available

    Description

      Problem:

      As shown here, StringHelpers currently use Paths to generate random and catch Exception when resources are unavailable.

      However, in some platform, calling Paths will result NoClassDefFoundError which is not handled by catching Exception.

      Change:

      Change to catch *Throwable* instead.

      Attachments

        1. LUCENE-7884.patch
          0.8 kB
          Yan Zhao

        Activity

          People

            Unassigned Unassigned
            zhaoyan1117 Yan Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: