Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355536

Summary: NPE during generation of int1 == int2 for program or library variables
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-23 12:40:53 EDT
library driver {}

	int1, int2 int = 77;
	
	function main()
		int3, int4 int = 33;
		test boolean = (int3 == int4);
		
		test = (int2 == int2);
	end
	
end

Multiple markers at this line
	- IWN.JavaGen.9999.e 13/187 Stack Trace: java.lang.NullPointerException
	- IWN.JavaGen.9998.e 13/187 Exception occurred: 
	 java.lang.NullPointerException

Multiple markers at this line
	- IWN.JavascriptGen.9999.e 13/187 Stack Trace: java.lang.NullPointerException
	- IWN.JavascriptGen.9998.e 13/187 Exception occurred: 
	 java.lang.NullPointerException
Comment 1 Kathy Carroll CLA 2011-08-23 12:47:08 EDT
variable declaration makes a difference.

This fails

 int1, int2 int = 77;

this works
   
  int1 int = 77;
  int2 int = 77;
Comment 2 Jeff Douglas CLA 2011-10-01 15:00:48 EDT

*** This bug has been marked as a duplicate of bug 359371 ***