EMF + Multiple inheritance with Interfaces [message #1826794] |
Thu, 30 April 2020 15:37 |
|
Given an Interface-EClass (abstract=true, interface=true) A
and an EClass B
Then for a second EClass C with Supertypes A + B
in the generated code CImpl wont inherit from BImpl
if C is with Supertypes B + A it will
is this a feature? or a bug?
for me it was at least a nice pitfall with custom impls in the Impl classes that suddenly got lost ;)
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="demo" nsURI="http://eclipse.org/demo" nsPrefix="demo">
<eClassifiers xsi:type="ecore:EClass" name="SomeInterface" abstract="true" interface="true"/>
<eClassifiers xsi:type="ecore:EClass" name="SomeClass"/>
<eClassifiers xsi:type="ecore:EClass" name="SomeSubclass" eSuperTypes="#//SomeInterface #//SomeClass"/>
</ecore:EPackage>
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.03502 seconds