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

Bug 353777

Summary: Java Generation Exception when define a exception record
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-03 10:40:14 EDT
Define a new EGL project, package, and source file. 

Add the following to the source file

Record AssertionFailedException type Exception
end

On save of file, the egl file has this error:

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

JavaScript Generation doesn't throw an exception.

I have two questions.  
1. Should Exception be fully qualified?
2. To isolate the problem I was creating a new library file with the exception. I'd get the generation error.  Then I'd remove the exception definition and save the file expecting to have my generation indicator removed from my egl file.  However, only clean project clears this out for me. I'm assuming this isn't the desired behavior.  Does a defect already exist for this?
Comment 1 Jeff Douglas CLA 2011-08-05 09:27:42 EDT
I've fixed this exception you are getting. I'm not sure what you mean about the project clean stuff. When you get the update, please try that part again.
Comment 2 Kathy Carroll CLA 2011-08-23 09:46:08 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:02:54 EDT
Closing this defect.