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

MVEL is having issues resolving a generic member in a concrete type

    XMLWordPrintable

    Details

      Description

      Not sure if this is related to Drools use of MVEL or MVEl itself...

      I have 2 classes:

      public abstract class AbstractBase<T> {
      protected T foo;
      public T getFoo()

      { return foo; }

      }

      public class StringConcrete extends AbstractBase<String> {
      public StringConcrete()

      { this.foo = new String(); }

      }

      The following rule fails in MVEL dialect, but passes in Java dialect.

      rule "test"
      dialect "mvel"
      when
      $S : StringConcrete()
      then
      System.out.println( $S.getFoo().concat("this works with java dialect") );
      end

        Attachments

          Activity

            People

            Assignee:
            mfusco Mario Fusco
            Reporter:
            sherl0ck Justin Holmes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: