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

fix contrib/ltr custom inner class feature/normaliser/model persistence

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.3, 8.0
    • contrib - LTR
    • None

    Description

      Custom feature/normaliser/model persistence across reloads is broken if the custom class is an inner class. This is because the class would be configured as (say) com.company.solr.ltr.feature.CustomFeatures$FeatureFoo but the stores (wrongly) persist com.company.solr.ltr.feature.CustomFeatures.FeatureFoo i.e. it's about the difference between getName() and getCanonicalName() – helpful link: https://stackoverflow.com/questions/15202997/what-is-the-difference-between-canonical-name-simple-name-and-class-name-in-jav/15203417

      Attachments

        1. SOLR-11931.patch
          6 kB
          Christine Poerschke

        Activity

          People

            cpoerschke Christine Poerschke
            cpoerschke Christine Poerschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: