[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 16 15:13:21 EST 2012
[ https://issues.jboss.org/browse/JBRULES-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Holmes updated JBRULES-3684:
-----------------------------------
Git Pull Request: (was: https://github.com/droolsjbpm/drools/pull/164)
> 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: Mario Fusco
> Priority: Minor
> Fix For: 6.0.0.Alpha1
>
>
> 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
--
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