[jboss-jira] [JBoss JIRA] Closed: (JBRULES-3114) regression: set test operator "in" broken
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Fri Jul 1 21:20:23 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli closed JBRULES-3114.
----------------------------------
> regression: set test operator "in" broken
> ------------------------------------------
>
> Key: JBRULES-3114
> URL: https://issues.jboss.org/browse/JBRULES-3114
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.2.0.Final
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
> Priority: Blocker
> Fix For: 5.2.1.Final, 5.3.0.Beta1
>
>
> This simple DRL runs into a NPE
> rule a
> when
> then
> insert( Integer.class );
> end
> rule xxx
> when
> $t: Class( $name: name not in ( "java.lang.Integer", "Bar", "Blech" ) )
> then
> System.out.println( "odd name: " + $t.getName() );
> end
> Caused by: java.lang.NullPointerException
> at org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:104)
> at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:291)
> If the "not" is removed, another strange error is thrown, claiming that 'name' cannot be accessed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list