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

Map access operator does not work if key name clashes with map property name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      The following example returns false, according to documentation should return 2.

      i = new ("java.util.HashMap"); i.a = 1; i["empty"] = 2; i["empty"]

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              dmitri_blinov Dmitri Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: