[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1722) Disabled rules still throws errors.
Le Huynh (JIRA)
jira-events at lists.jboss.org
Thu Aug 7 21:02:51 EDT 2008
[ https://jira.jboss.org/jira/browse/JBRULES-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Le Huynh updated JBRULES-1722:
------------------------------
Description:
When a rule throws an error (E.g. NullPointerException), disabling this rule does not ignore it and the error is still being thrown.
So if the following rule:
rule "rule1"
no-loop true
enabled false // This should ignore this rule and not throw NPE
when
ObjectOne( object.subObject.name == "ObjectOne") // This would throw a NPE if rule is active.
then
System.out.println( "blah1" );
end;
The fact passed in:
public class ObjectOne
{
public String getName()
{
return "ObjectOne";
}
public ObjectOne getSubObject()
{
return null; // Returning null intentionally.
}
}
was:
When a rule throws an error (E.g. NullPointerException), disabling this rule does not ignore it and the error is still being thrown.
So if the following rule:
rule "rule1"
no-loop true
enabled false
when
ObjectOne( object.subObject.name == "ObjectOne")
then
System.out.println( "blah1" );
end;
The fact passed in:
public class ObjectOne
{
public String getName()
{
return "ObjectOne";
}
public ObjectOne getSubObject()
{
return null; // Returning null intentionally.
}
}
> Disabled rules still throws errors.
> -----------------------------------
>
> Key: JBRULES-1722
> URL: https://jira.jboss.org/jira/browse/JBRULES-1722
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.7
> Environment: Windows XP.
> Reporter: Le Huynh
> Assignee: Mark Proctor
>
> When a rule throws an error (E.g. NullPointerException), disabling this rule does not ignore it and the error is still being thrown.
> So if the following rule:
> rule "rule1"
> no-loop true
> enabled false // This should ignore this rule and not throw NPE
> when
> ObjectOne( object.subObject.name == "ObjectOne") // This would throw a NPE if rule is active.
> then
> System.out.println( "blah1" );
> end;
> The fact passed in:
> public class ObjectOne
> {
> public String getName()
> {
> return "ObjectOne";
> }
> public ObjectOne getSubObject()
> {
> return null; // Returning null intentionally.
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list