Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-22

Empty string evaluates as null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 4.0
    • ExpressionCompiler
    • None
    • Tapestry 4.1.2 snapshot from 3-21, OGNL 2.7 snapshot from 3-25, Firefox 2, WinXP

    Description

      The empty string ('') evaluates to null in 2.7, whereas it evaluated to an empty string in 2.6. For example:

      <span jwcid="@Any" class="ognl:'' + 'tabHeader'>Test</span>

      This outputs <span class="nulltabHeader">. In 2.6 the class output was "tabHeader".

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            dotteben Ben Dotte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: