Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
>Mike Mannion wrote Although the semantic constraints may differ, there is still only one implementation, which would presumably have to be written to comply with all the constraints from all the interfaces which have the same method. If the constraints are mutually exclusive, then you cannot implement the method - i.e. the interfaces are mutually exclusive, so you cannot mix them. I am no expert in the expression of semantic constraints, but wouldn't it be possible for the compiler to check that the constraints for the same method in two interfaces are not conflicting? Replies:
|
Sponsored Links
|