Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-11

[jexl] Don't make null convertible into anything

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 2.0
    • None
    • Operating System: other
      Platform: Other

    • 31189

    Description

      Currently JEXL is very tolerant with null (and unresolved variables)...
      I am unsure now but I think null will become false if the output of a test, null will become the empty
      string if concatenated to a string, null will become the number zero when added. Moreover,
      invoking a method on null gives you... null...

      I would love a switch that just disables all this (I think this would impact quite a lot) allowing my jexl
      snippets to be quite more predictable!
      paul

      Attachments

        Activity

          People

            Unassigned Unassigned
            polx Paul Libbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: