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

Bug 359517

Summary: emp cannot be resolved to a variable
Product: z_Archived Reporter: pf yu <pfyu>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: jeffdouglas, jqian, pfyu, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description pf yu CLA 2011-09-30 02:29:20 EDT
Build Identifier: 201109292101

The EGL code:
emp Employee{EmpNo{department = "sales", value = 10}, LastName = "Smith"};

results in the wrong generated Java code:
		{
			emp.EmpNo.department = "sales";
			emp.EmpNo.value = (int)((short) 10);
		}
		Employee emp = new Employee();
		emp.LastName = "Smith";

Reproducible: Always

Steps to Reproduce:
1. Check out project "org.eclipse.edt.eunit.test" from kan-cvs.
2. Add java generator to the project.
3. Clean the whole workspace.
4. The error exists in:
fvt.xml.DCR43684Lib.java
Comment 1 Jeff Douglas CLA 2011-09-30 10:08:02 EDT
fixed
Comment 2 pf yu CLA 2011-10-04 03:34:51 EDT
Verified in build 201110030901, it works fine.