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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.5, 6.0
    • None
    • None
    • 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.patch
          7 kB
          Tomas Eduardo Fernandez Lobbe
        2. LUCENE-6965.patch
          8 kB
          Tomas Eduardo Fernandez Lobbe
        3. LUCENE-6965.patch
          7 kB
          Tomas Eduardo Fernandez Lobbe
        4. LUCENE-6965-2.patch
          4 kB
          Uwe Schindler

        Activity

          People

            Unassigned Unassigned
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: