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

Expression's JavascriptCompiler to throw ParseExceptions with bad function names or arity

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Currently JavascriptCompiler will throw IllegalArgumentException for bad function names (or functions that don't exist) and for bad arity. I can see why this was done this way, but I believe ParseException would also be correct and it would be better since that's the exception clients will be prepared to receive.

        Attachments

        1. LUCENE-6965-2.patch
          4 kB
          Uwe Schindler
        2. LUCENE-6965.patch
          7 kB
          Tomás Fernández Löbbe
        3. LUCENE-6965.patch
          8 kB
          Tomás Fernández Löbbe
        4. LUCENE-6965.patch
          7 kB
          Tomás Fernández Löbbe

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tomasflobbe Tomás Fernández Löbbe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: