Bug 724205 (BRMS-148)

Summary: Use of reserved word as bound variable in a pattern results as NPE
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: nwallace <nwallace>
Component: unspecifiedAssignee: Edson Tirelli <ed.tirelli>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0.0 GA, 5.0.1CC: dlesage
Target Milestone: ---   
Target Release: future   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-148
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Eclipse 3.2, Windows XP
Last Closed: 2009-09-16 14:57:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description nwallace 2009-07-07 12:03:32 UTC
Date of First Response: 2009-09-10 00:16:01
securitylevel_name: Public

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.

Comment 1 nwallace 2009-07-07 12:04:47 UTC
Link: Added: This issue is related to JBRULES-1287


Comment 2 nwallace 2009-07-07 12:06:23 UTC
Link: Added: This issue related JBRULES-1287


Comment 3 nwallace 2009-07-07 12:22:49 UTC
Link: Removed: This issue is related to JBRULES-1287 


Comment 4 nwallace 2009-09-01 12:15:30 UTC
Fix in place.

Comment 5 David Le Sage 2009-09-10 04:16:01 UTC
For the errata in the release notes, we require details of:


1.  the FIX (what was changed in the new parser) and 

2.  CONSEQUENCES of the fix (how this benefits users.)


Dot points are fine.

Comment 6 Jaroslaw Kijanowski 2009-09-16 14:56:34 UTC
Reopening to change the Fix Version to "future" since tooling patches will not go into the BRMS 5.0.1 release