[jboss-jira] [JBoss JIRA] (JBRULES-3064) dialect "mvel" flouts generic parameters
Edson Tirelli (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Oct 5 10:41:17 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632504#comment-12632504 ]
Edson Tirelli commented on JBRULES-3064:
----------------------------------------
As Mark mentioned, this is a dialect characteristic. MVEL does not support generics syntax. When it starts supporting it, we will support it as well. Meanwhile, if you want to use generic syntax, please use the java dialect.
> dialect "mvel" flouts generic parameters
> ----------------------------------------
>
> Key: JBRULES-3064
> URL: https://issues.jboss.org/browse/JBRULES-3064
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.2.0.CR1
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
> Priority: Blocker
> Fix For: 5.3.0.Final
>
>
> 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]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list