Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353777 - Java Generation Exception when define a exception record
Summary: Java Generation Exception when define a exception record
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 10:40 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

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