Details

    • Steps to Reproduce:
      Hide

      DRL compile this:

      import java.util.Map;
      dialect "mvel"
      function Integer x(String englishNumber)

      { Map m = ["one":1, "two":2, "three":3, "four":4, "five":5]; # not Java here! Object obj = m.get(englishNumber.toLowerCase()); return Integer.parseInt(obj.toString()); }
      Show
      DRL compile this: import java.util.Map; dialect "mvel" function Integer x(String englishNumber) { Map m = ["one":1, "two":2, "three":3, "four":4, "five":5]; # not Java here! Object obj = m.get(englishNumber.toLowerCase()); return Integer.parseInt(obj.toString()); }

      Description

      A DRL function using MVEL syntax "compiles" without any error indication when dialect "mvel" is set at package lavel.

      import java.util.Map;
      dialect "mvel"
      function Integer x(String englishNumber)

      { Map m = ["one":1, "two":2, "three":3, "four":4, "five":5]; # not Java here! Object obj = m.get(englishNumber.toLowerCase()); return Integer.parseInt(obj.toString()); }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  laune Wolfgang Laun
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: