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

[jexl] Don't make null convertible into anything

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: