Bug 519838 - Cannot create methods with same name but different signature
Summary: Cannot create methods with same name but different signature
Status: NEW
Alias: None
Product: EMFT
Classification: Modeling
Component: Emfatic (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Miguel Garcia CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-18 11:31 EDT by Harald Weiner CLA
Modified: 2017-07-18 11:34 EDT (History)
1 user (show)

See Also:


Attachments
emfatic file which shows this error (823 bytes, application/xml)
2017-07-18 11:31 EDT, Harald Weiner CLA
no flags Details
emfatic file which shows this error (this time for real) (823 bytes, text/plain)
2017-07-18 11:32 EDT, Harald Weiner CLA
no flags Details
emfatic file which shows this error (823 bytes, text/plain)
2017-07-18 11:33 EDT, Harald Weiner CLA
no flags Details
emfatic file which shows this error (821 bytes, text/plain)
2017-07-18 11:34 EDT, Harald Weiner CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Weiner CLA 2017-07-18 11:31:09 EDT
Created attachment 269407 [details]
emfatic file which shows this error

It is not possible to create the following in emfatic:

abstract interface MyVisitor {
	op void visit(Model model);
	op void visit(Feature feature);
	op void visit(Trace trace);
}

The expected result would be that it just creates three EOperations with the same name but different parameters.

The actual result is first a warning inside of emfatic with the following text "The typed element must have a type" and later the same message as an error when doing an Ecore validation.


Using Emfatic (Incubation) 0.8.0.201507261242 from http://download.eclipse.org/emfatic/update
Comment 1 Harald Weiner CLA 2017-07-18 11:32:57 EDT
Created attachment 269408 [details]
emfatic file which shows this error (this time for real)
Comment 2 Harald Weiner CLA 2017-07-18 11:33:24 EDT
Created attachment 269409 [details]
emfatic file which shows this error
Comment 3 Harald Weiner CLA 2017-07-18 11:34:08 EDT
Created attachment 269410 [details]
emfatic file which shows this error