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

Bug 359503

Summary: Can NOT define Record Entity in EDT
Product: z_Archived Reporter: Yu Hao <yuhaodl>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: carrollk, chenzhh, jeffdouglas, jqian, svihovec, yuhaodl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Yu Hao CLA 2011-09-29 22:14:13 EDT
Build Identifier: 201109292101

Define a Record Entity in EDT project, there will fire a generation error

Reproducible: Always

Steps to Reproduce:
1.Create a Record Entity in an EDT project
package aa;


record ttt type Entity

    itemName string;
	itemid	int;
end

2.There will fire an error:
Description	Resource	Path	Location	Type
IWN.JavaGen.9998.e 0/0 Exception occurred: No such method genSuperClass(org.eclipse.edt.mof.egl.impl.StereotypeImpl, org.eclipse.edt.gen.java.Context, org.eclipse.edt.mof.codegen.api.TabbedWriter, ) for any template for Class org.eclipse.edt.mof.egl.impl.StereotypeImpl	ttt.egl	/ttt/EGLSource/aa	line 0	EDT Generation Problem

3.
Comment 1 Jeff Douglas CLA 2011-10-01 09:34:47 EDT
This logic is fixed, however there is 1 question that needs to be answered before all of the java generation errors will be fixed.

for record x type entity,

what is the generated class for x supposed to extend, if anything?
Comment 2 Kathy Carroll CLA 2011-10-03 09:39:19 EDT
With build 201110012101 this also applies to the basicHandler as well.

handler Simple type ENTITY 
end
Comment 3 Jeff Douglas CLA 2011-10-03 14:48:53 EDT
I have fixed the record type entity. The handler type entity needs to be fixed.
Comment 4 Jing Qian CLA 2011-10-03 16:05:37 EDT
Lower the severity, but it is P1(must fix for 070) for Handler
Comment 5 Jeff Douglas CLA 2011-10-04 09:50:52 EDT
fixed
Comment 6 Yu Hao CLA 2011-10-12 22:48:11 EDT
verified in 201110120952