[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1287) Use of reserved word as bound variable in a pattern results as NPE
Justin Wick (JIRA)
jira-events at lists.jboss.org
Fri Oct 19 13:03:04 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1287?page=all ]
Justin Wick updated JBRULES-1287:
---------------------------------
Attachment: ReservedWordNPE.zip
A sample project which generates aforementioned NPEs, designed to be easily integrated into a junit test
> Use of reserved word as bound variable in a pattern results as NPE
> ------------------------------------------------------------------
>
> Key: JBRULES-1287
> URL: http://jira.jboss.com/jira/browse/JBRULES-1287
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Eclipse IDE, Drl Parser/Builder
> Affects Versions: 4.0.2
> Environment: Eclipse 3.2, Windows XP
> Reporter: Justin Wick
> Assigned To: Mark Proctor
> Attachments: ReservedWordNPE.zip
>
>
> example:
> rule "This generates an NPE"
> when
> result : ReservedWordNPEFact(data < 15)
> then
> result.setData(new Integer(1));
> end
> At least in the eclipse IDE, this generates an NPE. Change result to something like:
> rule "This generates an NPE"
> when
> f: ReservedWordNPEFact(data < 15)
> then
> f.setData(new Integer(1));
> end
> and it goes away.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list