Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16167

Review static initializers that reference subclasses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • main (10.0)
    • None
    • None
    • None

    Description

      More general follow-up to SOLR-16165.

      There is the potential for classloading deadlock in the case where static initializers reference a subclass.

      This issue could cover 1 or 2 things:

      1. Fix existing issues
      2. Add a build check to prevent such issues from being introduced in the future

      Fixing existing issues should be relatively straightforward, once we're specifically looking for them. "in the wild" these are problematic enough that it's probably worth just fixing all such issues whether or not they manifest as deadlock in practice.

      It would be great if we could port/modify/leverage an existing implementation that already checks for this and have it apply automatically in the build, unless this approach proves impractical.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              magibney Michael Gibney
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: