[jboss-jira] [JBoss JIRA] (JBRULES-3684) MVEL is having issues resolving a generic member in a concrete type

Justin Holmes (JIRA) jira-events at lists.jboss.org
Fri Nov 9 23:12:17 EST 2012


Justin Holmes created JBRULES-3684:
--------------------------------------

             Summary: MVEL is having issues resolving a generic member in a concrete type
                 Key: JBRULES-3684
                 URL: https://issues.jboss.org/browse/JBRULES-3684
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-compiler
    Affects Versions: 5.5.0.CR1
            Reporter: Justin Holmes
            Assignee: Mark Proctor
            Priority: Minor


Pull request with test case to follow...

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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list