forked from umple/umple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed methods in Abstract class from Interface.
Resolved an issue where Umple was incorrectly generating default implementation of an interface's methods in abstract child classes. In the old behaviour, a class would always be forced to implement the methods from an interface. In the new behaviour, abstract methods will not implement the methods, and instead Umple will search for unimplemented methods for both the current class' parent interfaces and the whole chain of superclasses. Fixes umple#608 Signed-off-by: Victoria Lacroix <[email protected]>
- Loading branch information
Showing
3 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cruise.umple/test/cruise/umple/compiler/423_interfaceInheritanceAbstract.ump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
interface I { | ||
Integer I1(); | ||
} | ||
|
||
class A { | ||
isA I; | ||
} | ||
|
||
class B { | ||
isA A; | ||
} | ||
|
||
class C { | ||
abstract; | ||
isA I; | ||
} | ||
|
||
class D { | ||
isA C; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters