[rules-users] Then part of DRL file can not use Java Generic?

Wolfgang Laun wolfgang.laun at gmail.com
Mon Dec 30 15:12:28 EST 2013


Drools version? Also, details such as the setting of the "dialect" option?
-W

On 30/12/2013, wtang <wtang at kana.com> wrote:
> Does Drools DRL file support Java generic?  I have the following in THEN
> part
> of the DRL rule file:
>
> import java.util.*;
>
> .....
>
> Then
>
> List<String> stringList = new ArrayList<String>();  // error could not
> resolve class ArrayList<String>
>
> But If I do:
>
> List stringList = new ArrayList();  // this works fine!
>
>
> thx!
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Then-part-of-DRL-file-can-not-use-Java-Generic-tp4027465.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list