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

SolrInputDocument no-args constructor removed without notice

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.1
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None
    • Environment:

      Lucee (or ColdFusion) loading SolrJ using separate URLClassLoader instance)

      Description

      In 6.0.1 and previous, SolrInputDocument provided two constructors - one with no arguments, the other accepting a Map object. As of 6.1.0, the no-arguments constructor is replaced with one that accepts zero or more strings.

      With 6.0.1, this worked:

      cls = LoadClass("org.apache.solr.common.SolrInputDocument");

      Constructor foo = cls.getConstructor();

      This fails with Solr 6.1.0

      We get the same error after updating the code to this:

      cls = LoadClass("org.apache.solr.common.SolrInputDocument");

      Class[] argArray = new Class[0];
      Constructor foo = cls.getConstructor(argArray);

      Are we missing something? If not, please restore the missing no-arguments constructor.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tparker Tim Parker
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: