Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3064

dialect "mvel" flouts generic parameters

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Given the rule
      =============================================
      rule x
      dialect "mvel"
      when
      then
      List<Integer> l = new ArrayList<Integer>();
      end
      =============================================
      we get the error
      =============================================
      Unable to Analyse Expression List x = new ArrayList<Integer>();
      [Error: Failed to compileShared: 1 compilation error(s):

      • (1,23) could not resolve class: ArrayList<Integer>]
        [Near : {... List x = new ArrayList<Integer>(); ....}

        ]
        ^
        [Line: 1, Column: 23]

            etirelli@redhat.com Edson Tirelli
            laune Wolfgang Laun (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: