Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359517 - emp cannot be resolved to a variable
Summary: emp cannot be resolved to a variable
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 02:29 EDT by pf yu CLA
Modified: 2017-02-23 14:17 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.